Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Ret2Shell Steganography

How to use?

pip install ret2shell-steganography

leet mode

from ret2shell_steganography import LeetStego
# 初始化一个密钥,需要与平台上设置的相同
stego = LeetStego("your_secret_key")

# 定义 Flag 模板,获取ID(team_id优先,user_id次之)
template = "this-is-an-example"
data_id = 12345

# 生成 Flag 内容
encoded = stego.encode(template, data_id)
print(f"编码结果 {encoded}")

# 解码验证
decoded = stego.decode(template, encoded)
print(f"解码结果 {decoded}")  # 12345

uuid mode

from ret2shell_steganography import UUIDStego

# 初始化(带连字符格式)
uuid_stego = UUIDStego("your_secret_key", with_hyphen=True)

template = "this-is-an-example"
data_id = 12345

# 生成 UUID
encoded = uuid_stego.encode(template, data_id)
print(f"UUID: {encoded}")

# 解码
decoded = uuid_stego.decode(template, encoded)
print(f"解码结果: {decoded}")  # 12345

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ret2shell_steganography-0.1.1.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ret2shell_steganography-0.1.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file ret2shell_steganography-0.1.1.tar.gz.

File metadata

  • Download URL: ret2shell_steganography-0.1.1.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ret2shell_steganography-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6d5907f93337bdd708e9c9eceecbe5fcfca4578d9e73a944dda60408df683cff
MD5 08e8aaeb22a307755affcc7b8566f2bf
BLAKE2b-256 9e942b38eb353e1c55f1e68f5db5308af46b87ce804c414e572f6c39d35e4495

See more details on using hashes here.

File details

Details for the file ret2shell_steganography-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ret2shell_steganography-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdcf31be082b84faf757227a61e78dae86d0653b8f9568902455417ae438a083
MD5 46766eda10055a6f49a12e6176084c57
BLAKE2b-256 6105ce4cef5751edd045f6275f93b71fa9a323fc7b0f316263ecec12d9fcd2f0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page