Ret2Shell All-in-One Kit
回归终端 Ret2Shell 工具箱,目前包含动态 FLAG 生成校验。
Ret2Shell is a feature-riches CTF challenge platform developed by Reverier Xu and other contributors.
The newest version of this package is v0.1.0.
This package obeys the same license of Ret2Shell, GNU GPL-3.0.
如何使用
pip install ret2shell-kit
leet mode
from ret2shell_kit 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_kit 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_kit-0.1.0.tar.gz
(20.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ret2shell_kit-0.1.0.tar.gz.
File metadata
- Download URL: ret2shell_kit-0.1.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8735c2672183263bac9804a78f11fccfdf6b810b1fa6529b42c218da6ba8c53
|
|
| MD5 |
2be5d46678882aadc90da3b193611c3f
|
|
| BLAKE2b-256 |
6ca2c71b837575eec17a5de38a6cae2ad553f72216b177059c68ecee7e9f00e4
|
File details
Details for the file ret2shell_kit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ret2shell_kit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c91d40c9dcbd2fac27fef1b6009d71e2c21198112cfc8f5b7547aa1815bffde
|
|
| MD5 |
876ffa4d9aabfe0be6acdccf8a245fdf
|
|
| BLAKE2b-256 |
7c0ec42f82e89f93d42f222fb5f32dec97b8cdca4368c2b308508bc30685e88f
|