tchef-cli 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tchef_cli-1.0.1/PKG-INFO +81 -0
- tchef_cli-1.0.1/README.md +73 -0
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/pyproject.toml +1 -1
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/tchef.py +3 -3
- tchef_cli-1.0.1/tchef_cli.egg-info/PKG-INFO +81 -0
- tchef_cli-1.0.0/PKG-INFO +0 -79
- tchef_cli-1.0.0/README.md +0 -71
- tchef_cli-1.0.0/tchef_cli.egg-info/PKG-INFO +0 -79
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/setup.cfg +0 -0
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/tchef_cli.egg-info/SOURCES.txt +0 -0
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/tchef_cli.egg-info/dependency_links.txt +0 -0
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/tchef_cli.egg-info/entry_points.txt +0 -0
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/tchef_cli.egg-info/requires.txt +0 -0
- {tchef_cli-1.0.0 → tchef_cli-1.0.1}/tchef_cli.egg-info/top_level.txt +0 -0
tchef_cli-1.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tchef-cli
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: A lightweight terminal-based alternative to CyberChef for encoding, decoding, and XOR operations.
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: colorama
|
|
8
|
+
|
|
9
|
+
# TChef
|
|
10
|
+
|
|
11
|
+
**TChef** is a powerful, terminal-based data manipulation and encoding/decoding tool designed for penetration testers. It can be considered as a lightweight, CLI alternative to CyberChef.
|
|
12
|
+
|
|
13
|
+
TChef allows you to analyze obfuscated data without ever needing Internet or leaving your terminal.
|
|
14
|
+
|
|
15
|
+
## 👾 Features
|
|
16
|
+
|
|
17
|
+
- **⛓ Operation Chaining**: Chain multiple operations in a single command (e.g., `-o "en_b64,en_rot13"`).
|
|
18
|
+
- **🔮 The MAGIC Module**: Recursively tries every operation in the script to decode obfuscated data.
|
|
19
|
+
- **🗂 Pipe & File I/O Support**: Read, write, and pipe data seamlessly.
|
|
20
|
+
|
|
21
|
+
## 🔣 Supported Operations (for now!)
|
|
22
|
+
|
|
23
|
+
- **🔍 Encoding & Decoding**: Base64, Base32, Hex, URL, UTF-8
|
|
24
|
+
- **🔐 Cryptography**: XOR, ROT13
|
|
25
|
+
- **🔒 Hashing**: MD5, SHA-1, SHA-256, SHA-512
|
|
26
|
+
- and **🔮 MAGIC** operator
|
|
27
|
+
|
|
28
|
+
## 📦 Installation
|
|
29
|
+
|
|
30
|
+
Install directly from PyPI:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install tchef-cli
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Or install from source:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone [https://github.com/kotiaeion2512/TChef.git](https://github.com/kotiaeion2512/TChef.git)
|
|
40
|
+
cd TChef
|
|
41
|
+
pip install .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 💡 Usage Examples
|
|
45
|
+
|
|
46
|
+
**1. Basic Encoding/Decoding**
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
tchef -o en_b64 -d "TopSecret"
|
|
50
|
+
# Output: VG9wU2VjcmV0
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**2. Operation Chaining (Recipe)** — Decode a Base64 string, then decode the resulting Hex string:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
tchef -o dec_b64,dec_hex -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**3. XOR Encryption with a Key**
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
tchef -o en_xor -k "supersecret" -d "hiddenpayload"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**4. Using the MAGIC Module** — Let TChef figure out the nested encoding automatically:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
tchef -o magic -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**5. File I/O and Pipelining** — Read a file, hash it, and save the result:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
tchef -i payload.bin -o hash_sha2 -f checksum.txt
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Or use Linux pipes:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
echo -n "admin" | tchef -o hash_md5
|
|
81
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# TChef
|
|
2
|
+
|
|
3
|
+
**TChef** is a powerful, terminal-based data manipulation and encoding/decoding tool designed for penetration testers. It can be considered as a lightweight, CLI alternative to CyberChef.
|
|
4
|
+
|
|
5
|
+
TChef allows you to analyze obfuscated data without ever needing Internet or leaving your terminal.
|
|
6
|
+
|
|
7
|
+
## 👾 Features
|
|
8
|
+
|
|
9
|
+
- **⛓ Operation Chaining**: Chain multiple operations in a single command (e.g., `-o "en_b64,en_rot13"`).
|
|
10
|
+
- **🔮 The MAGIC Module**: Recursively tries every operation in the script to decode obfuscated data.
|
|
11
|
+
- **🗂 Pipe & File I/O Support**: Read, write, and pipe data seamlessly.
|
|
12
|
+
|
|
13
|
+
## 🔣 Supported Operations (for now!)
|
|
14
|
+
|
|
15
|
+
- **🔍 Encoding & Decoding**: Base64, Base32, Hex, URL, UTF-8
|
|
16
|
+
- **🔐 Cryptography**: XOR, ROT13
|
|
17
|
+
- **🔒 Hashing**: MD5, SHA-1, SHA-256, SHA-512
|
|
18
|
+
- and **🔮 MAGIC** operator
|
|
19
|
+
|
|
20
|
+
## 📦 Installation
|
|
21
|
+
|
|
22
|
+
Install directly from PyPI:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install tchef-cli
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or install from source:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
git clone [https://github.com/kotiaeion2512/TChef.git](https://github.com/kotiaeion2512/TChef.git)
|
|
32
|
+
cd TChef
|
|
33
|
+
pip install .
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 💡 Usage Examples
|
|
37
|
+
|
|
38
|
+
**1. Basic Encoding/Decoding**
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
tchef -o en_b64 -d "TopSecret"
|
|
42
|
+
# Output: VG9wU2VjcmV0
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**2. Operation Chaining (Recipe)** — Decode a Base64 string, then decode the resulting Hex string:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
tchef -o dec_b64,dec_hex -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**3. XOR Encryption with a Key**
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
tchef -o en_xor -k "supersecret" -d "hiddenpayload"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**4. Using the MAGIC Module** — Let TChef figure out the nested encoding automatically:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
tchef -o magic -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**5. File I/O and Pipelining** — Read a file, hash it, and save the result:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
tchef -i payload.bin -o hash_sha2 -f checksum.txt
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Or use Linux pipes:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
echo -n "admin" | tchef -o hash_md5
|
|
73
|
+
```
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tchef-cli"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.1"
|
|
8
8
|
description = "A lightweight terminal-based alternative to CyberChef for encoding, decoding, and XOR operations."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -183,11 +183,11 @@ def main():
|
|
|
183
183
|
print(Fore.CYAN + Style.BRIGHT + ("\nTCHEF: TERMINAL INTERFACE OF ENCODING-DECODING PROCESSES").center(30) + ("\n" * 3) + Style.RESET_ALL)
|
|
184
184
|
print("-" * 50)
|
|
185
185
|
print(Style.BRIGHT + "magic - MAGIC\nen_utf8 - ENcode String to UTF-8\ndec_utf8 - DEcode from UTF-8 Bytes\nen_b64 - ENcode Bytes to Base64\ndec_b64 - DEcode Bytes from Base64")
|
|
186
|
-
print("en_b32 - ENcode Bytes to Base32\ndec_b32 - DEcode from Base32\nen_rot13 - ENcode to ROT13\ndec_rot13 - DEcode from ROT13")
|
|
187
|
-
print("en_hex - ENcode Bytes to Hex\ndec_hex - DEcode from Hex\nen_url - ENcode to URL\ndec_url - DEcode from URL,\nen_xor - XOR ENcryption\ndec_xor - XOR DEcryption\n")
|
|
186
|
+
print(Style.BRIGHT + "en_b32 - ENcode Bytes to Base32\ndec_b32 - DEcode from Base32\nen_rot13 - ENcode to ROT13\ndec_rot13 - DEcode from ROT13")
|
|
187
|
+
print(Style.BRIGHT +"en_hex - ENcode Bytes to Hex\ndec_hex - DEcode from Hex\nen_url - ENcode to URL\ndec_url - DEcode from URL,\nen_xor - XOR ENcryption\ndec_xor - XOR DEcryption\n")
|
|
188
188
|
print("-" * 50)
|
|
189
189
|
print(Style.NORMAL +"HASHES"+ Style.BRIGHT + "\n\nhash_md5 - HASH to MD5\nhash_sha1 - HASH to SHA1\nhash_sha2 - HASH to SHA256\nhash_sha512 - HASH to SHA512")
|
|
190
|
-
print("\nXOR encyrption and decyrption works with base64.\n"+ Style.RESET_ALL + Fore.GREEN + "\n[+] Tip: You can chain operations:>! example: -o 'en_b64,en_hex'")
|
|
190
|
+
print(Style.BRIGHT + "\nXOR encyrption and decyrption works with base64.\n"+ Style.RESET_ALL + Fore.GREEN + "\n[+] Tip: You can chain operations:>! example: -o 'en_b64,en_hex'")
|
|
191
191
|
sys.exit(0)
|
|
192
192
|
|
|
193
193
|
if args.input_file:
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tchef-cli
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: A lightweight terminal-based alternative to CyberChef for encoding, decoding, and XOR operations.
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: colorama
|
|
8
|
+
|
|
9
|
+
# TChef
|
|
10
|
+
|
|
11
|
+
**TChef** is a powerful, terminal-based data manipulation and encoding/decoding tool designed for penetration testers. It can be considered as a lightweight, CLI alternative to CyberChef.
|
|
12
|
+
|
|
13
|
+
TChef allows you to analyze obfuscated data without ever needing Internet or leaving your terminal.
|
|
14
|
+
|
|
15
|
+
## 👾 Features
|
|
16
|
+
|
|
17
|
+
- **⛓ Operation Chaining**: Chain multiple operations in a single command (e.g., `-o "en_b64,en_rot13"`).
|
|
18
|
+
- **🔮 The MAGIC Module**: Recursively tries every operation in the script to decode obfuscated data.
|
|
19
|
+
- **🗂 Pipe & File I/O Support**: Read, write, and pipe data seamlessly.
|
|
20
|
+
|
|
21
|
+
## 🔣 Supported Operations (for now!)
|
|
22
|
+
|
|
23
|
+
- **🔍 Encoding & Decoding**: Base64, Base32, Hex, URL, UTF-8
|
|
24
|
+
- **🔐 Cryptography**: XOR, ROT13
|
|
25
|
+
- **🔒 Hashing**: MD5, SHA-1, SHA-256, SHA-512
|
|
26
|
+
- and **🔮 MAGIC** operator
|
|
27
|
+
|
|
28
|
+
## 📦 Installation
|
|
29
|
+
|
|
30
|
+
Install directly from PyPI:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install tchef-cli
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Or install from source:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone [https://github.com/kotiaeion2512/TChef.git](https://github.com/kotiaeion2512/TChef.git)
|
|
40
|
+
cd TChef
|
|
41
|
+
pip install .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 💡 Usage Examples
|
|
45
|
+
|
|
46
|
+
**1. Basic Encoding/Decoding**
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
tchef -o en_b64 -d "TopSecret"
|
|
50
|
+
# Output: VG9wU2VjcmV0
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**2. Operation Chaining (Recipe)** — Decode a Base64 string, then decode the resulting Hex string:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
tchef -o dec_b64,dec_hex -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**3. XOR Encryption with a Key**
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
tchef -o en_xor -k "supersecret" -d "hiddenpayload"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**4. Using the MAGIC Module** — Let TChef figure out the nested encoding automatically:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
tchef -o magic -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**5. File I/O and Pipelining** — Read a file, hash it, and save the result:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
tchef -i payload.bin -o hash_sha2 -f checksum.txt
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Or use Linux pipes:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
echo -n "admin" | tchef -o hash_md5
|
|
81
|
+
```
|
tchef_cli-1.0.0/PKG-INFO
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tchef-cli
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: A lightweight terminal-based alternative to CyberChef for encoding, decoding, and XOR operations.
|
|
5
|
-
Requires-Python: >=3.8
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
Requires-Dist: colorama
|
|
8
|
-
|
|
9
|
-
**TChef** is a powerful, terminal based data manipulation and encoding/decoding tool designed for penetration testers. It can be considered as a lightweight, CLI alternative to CyberChef.
|
|
10
|
-
|
|
11
|
-
TChef allows you to analyze obfuscated data without ever needing Internet and leaving your terminal.
|
|
12
|
-
|
|
13
|
-
## 👾Features
|
|
14
|
-
|
|
15
|
-
- **⛓Operation Chaining**: Chain multiple operations in a single command (e.g., "-o en_b64, en_rot13)
|
|
16
|
-
- **🔮The MAGIC Module**: Recursively tries every operation in the script to decode the obfuscated data.
|
|
17
|
-
- **🗂Pipe & File I/O Support**: Read, write and pipe data without having any problems!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## 🔣Supported Operations (for now!)
|
|
21
|
-
|
|
22
|
-
- **🔍Encoding & Decoding**: Base64, Base32, Hex, URL, UTF-8
|
|
23
|
-
- **🔐Cryptography**: XOR, ROT13
|
|
24
|
-
- **🔒Hashing**: MD5, SHA-1, SHA-256, SHA-512
|
|
25
|
-
- and **🔮MAGIC** operator
|
|
26
|
-
|
|
27
|
-
## 📦Installation
|
|
28
|
-
|
|
29
|
-
Clone the repository and you are ready to go.
|
|
30
|
-
|
|
31
|
-
`git clone https://github.com/kotiaeion2512/Tchef.git`
|
|
32
|
-
`cd Tchef`
|
|
33
|
-
`pip install colorama`
|
|
34
|
-
`chmod +x tchef.py`
|
|
35
|
-
|
|
36
|
-
## 💡Usage Examples
|
|
37
|
-
|
|
38
|
-
**1. Basic Encoding/Decoding**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
python tchef.py -o en_b64 -d "TopSecret"
|
|
43
|
-
# Output: VG9wU2VjcmV0
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**2. Operation Chaining (Recipe)** Decode a Base64 string, then decode the resulting Hex string:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
python tchef.py -o dec_b64,dec_hex -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**3. XOR Encryption with a Key**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
python tchef.py -o en_xor -k "supersecret" -d "hiddenpayload"
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**4. Using the MAGIC Module** Let TChef figure out the nested encoding automatically:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
python tchef.py -o magic -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**5. File I/O and Pipelining** Read a file, hash it, and save the result:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
python tchef.py -i payload.bin -o hash_sha256 -f checksum.txt
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Or use Linux pipes:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
echo "admin" | python tchef.py -o hash_md5
|
|
79
|
-
```
|
tchef_cli-1.0.0/README.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
**TChef** is a powerful, terminal based data manipulation and encoding/decoding tool designed for penetration testers. It can be considered as a lightweight, CLI alternative to CyberChef.
|
|
2
|
-
|
|
3
|
-
TChef allows you to analyze obfuscated data without ever needing Internet and leaving your terminal.
|
|
4
|
-
|
|
5
|
-
## 👾Features
|
|
6
|
-
|
|
7
|
-
- **⛓Operation Chaining**: Chain multiple operations in a single command (e.g., "-o en_b64, en_rot13)
|
|
8
|
-
- **🔮The MAGIC Module**: Recursively tries every operation in the script to decode the obfuscated data.
|
|
9
|
-
- **🗂Pipe & File I/O Support**: Read, write and pipe data without having any problems!
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## 🔣Supported Operations (for now!)
|
|
13
|
-
|
|
14
|
-
- **🔍Encoding & Decoding**: Base64, Base32, Hex, URL, UTF-8
|
|
15
|
-
- **🔐Cryptography**: XOR, ROT13
|
|
16
|
-
- **🔒Hashing**: MD5, SHA-1, SHA-256, SHA-512
|
|
17
|
-
- and **🔮MAGIC** operator
|
|
18
|
-
|
|
19
|
-
## 📦Installation
|
|
20
|
-
|
|
21
|
-
Clone the repository and you are ready to go.
|
|
22
|
-
|
|
23
|
-
`git clone https://github.com/kotiaeion2512/Tchef.git`
|
|
24
|
-
`cd Tchef`
|
|
25
|
-
`pip install colorama`
|
|
26
|
-
`chmod +x tchef.py`
|
|
27
|
-
|
|
28
|
-
## 💡Usage Examples
|
|
29
|
-
|
|
30
|
-
**1. Basic Encoding/Decoding**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
python tchef.py -o en_b64 -d "TopSecret"
|
|
35
|
-
# Output: VG9wU2VjcmV0
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**2. Operation Chaining (Recipe)** Decode a Base64 string, then decode the resulting Hex string:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
python tchef.py -o dec_b64,dec_hex -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**3. XOR Encryption with a Key**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
python tchef.py -o en_xor -k "supersecret" -d "hiddenpayload"
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
**4. Using the MAGIC Module** Let TChef figure out the nested encoding automatically:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
python tchef.py -o magic -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**5. File I/O and Pipelining** Read a file, hash it, and save the result:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
python tchef.py -i payload.bin -o hash_sha256 -f checksum.txt
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Or use Linux pipes:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
echo "admin" | python tchef.py -o hash_md5
|
|
71
|
-
```
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tchef-cli
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: A lightweight terminal-based alternative to CyberChef for encoding, decoding, and XOR operations.
|
|
5
|
-
Requires-Python: >=3.8
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
Requires-Dist: colorama
|
|
8
|
-
|
|
9
|
-
**TChef** is a powerful, terminal based data manipulation and encoding/decoding tool designed for penetration testers. It can be considered as a lightweight, CLI alternative to CyberChef.
|
|
10
|
-
|
|
11
|
-
TChef allows you to analyze obfuscated data without ever needing Internet and leaving your terminal.
|
|
12
|
-
|
|
13
|
-
## 👾Features
|
|
14
|
-
|
|
15
|
-
- **⛓Operation Chaining**: Chain multiple operations in a single command (e.g., "-o en_b64, en_rot13)
|
|
16
|
-
- **🔮The MAGIC Module**: Recursively tries every operation in the script to decode the obfuscated data.
|
|
17
|
-
- **🗂Pipe & File I/O Support**: Read, write and pipe data without having any problems!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## 🔣Supported Operations (for now!)
|
|
21
|
-
|
|
22
|
-
- **🔍Encoding & Decoding**: Base64, Base32, Hex, URL, UTF-8
|
|
23
|
-
- **🔐Cryptography**: XOR, ROT13
|
|
24
|
-
- **🔒Hashing**: MD5, SHA-1, SHA-256, SHA-512
|
|
25
|
-
- and **🔮MAGIC** operator
|
|
26
|
-
|
|
27
|
-
## 📦Installation
|
|
28
|
-
|
|
29
|
-
Clone the repository and you are ready to go.
|
|
30
|
-
|
|
31
|
-
`git clone https://github.com/kotiaeion2512/Tchef.git`
|
|
32
|
-
`cd Tchef`
|
|
33
|
-
`pip install colorama`
|
|
34
|
-
`chmod +x tchef.py`
|
|
35
|
-
|
|
36
|
-
## 💡Usage Examples
|
|
37
|
-
|
|
38
|
-
**1. Basic Encoding/Decoding**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
python tchef.py -o en_b64 -d "TopSecret"
|
|
43
|
-
# Output: VG9wU2VjcmV0
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**2. Operation Chaining (Recipe)** Decode a Base64 string, then decode the resulting Hex string:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
python tchef.py -o dec_b64,dec_hex -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**3. XOR Encryption with a Key**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
python tchef.py -o en_xor -k "supersecret" -d "hiddenpayload"
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**4. Using the MAGIC Module** Let TChef figure out the nested encoding automatically:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
python tchef.py -o magic -d "NDQ2NTc2Njk2NDZmNzU2Njc1NzI2NTY0M2QzZA=="
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**5. File I/O and Pipelining** Read a file, hash it, and save the result:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
python tchef.py -i payload.bin -o hash_sha256 -f checksum.txt
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Or use Linux pipes:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
echo "admin" | python tchef.py -o hash_md5
|
|
79
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|