Ret2Shell All-in-One Kit
回归终端 Ret2Shell 工具箱,目前包含动态 FLAG 生成校验、接口管理(计划)等功能。
Ret2Shell is a feature-riches CTF challenge platform developed by Reverier Xu and other contributors.
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
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.1.tar.gz.
File metadata
- Download URL: ret2shell_kit-0.1.1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c59138a23a8b24114007d15d2fc87f35f6f7c0b98c730878b1c78774efcaef70
|
|
| MD5 |
a6c894c1be3939bcb2964a1308d42233
|
|
| BLAKE2b-256 |
dbdad79c65e7a02ef0a315f90a3e81ac97c6b1feacfa89c3a3e63077cd8c9bd1
|
Provenance
The following attestation bundles were made for ret2shell_kit-0.1.1.tar.gz:
Publisher:
publish.yml on Xiaozonglin/ret2shell-steganography
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ret2shell_kit-0.1.1.tar.gz -
Subject digest:
c59138a23a8b24114007d15d2fc87f35f6f7c0b98c730878b1c78774efcaef70 - Sigstore transparency entry: 2363159355
- Sigstore integration time:
-
Permalink:
Xiaozonglin/ret2shell-steganography@99df384049e8808f5d6c271b8542f7871f16087a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Xiaozonglin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@99df384049e8808f5d6c271b8542f7871f16087a -
Trigger Event:
push
-
Statement type:
File details
Details for the file ret2shell_kit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ret2shell_kit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0817afc6abefc0aca311ff18115fb6e652fddfcb7d815cc9d651ba821e03ed36
|
|
| MD5 |
b2415d48ffb284d953537cebf111483a
|
|
| BLAKE2b-256 |
d4dca43e44838d79061143f2952d22336cc76c549a146b5e84dfaed971f7777e
|
Provenance
The following attestation bundles were made for ret2shell_kit-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Xiaozonglin/ret2shell-steganography
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ret2shell_kit-0.1.1-py3-none-any.whl -
Subject digest:
0817afc6abefc0aca311ff18115fb6e652fddfcb7d815cc9d651ba821e03ed36 - Sigstore transparency entry: 2363159462
- Sigstore integration time:
-
Permalink:
Xiaozonglin/ret2shell-steganography@99df384049e8808f5d6c271b8542f7871f16087a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Xiaozonglin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@99df384049e8808f5d6c271b8542f7871f16087a -
Trigger Event:
push
-
Statement type: