Binary decompilation and steganography toolkit for CTF challenges
Project description
cfr-decompiler
Binary decompilation and steganography toolkit for CTF challenges.
Installation
pip install cfr-decompiler
Usage
from cfr_decompiler import BinaryFile, StegoExtractor, StringDumper, hexdump
# Binary analysis
bf = BinaryFile("challenge.bin")
print(bf.summary())
print(bf.find_flags())
print(bf.find_embedded_files())
print(bf.xor_scan())
# Steganography
se = StegoExtractor("hidden.png")
report = se.full_scan() # run all detections
data = se.lsb_extract(bits=1) # LSB extraction
meta = se.extract_metadata() # EXIF / PNG text chunks
appended = se.extract_appended_data()
# Strings
sd = StringDumper.from_file("binary.elf")
print(sd.flags()) # find CTF flags
print(sd.base64_candidates()) # base64 strings
print(sd.urls()) # embedded URLs
# Hex dump
print(hexdump(open("file", "rb").read(), length=256))
CLI
cfr scan challenge.bin
cfr scan challenge.bin --json
cfr strings binary.elf --flags-only
cfr hex binary.elf --offset 0x100 --length 128
cfr stego hidden.png
cfr lsb hidden.png --bits 1 --channels RGB
cfr xor encrypted.bin
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cfr_decompiler-0.1.0.tar.gz
(8.0 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 cfr_decompiler-0.1.0.tar.gz.
File metadata
- Download URL: cfr_decompiler-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41d8e864d9040b4970956087fc90e837443ed83b29182b207b12fda98fa856dd
|
|
| MD5 |
21426b774bf885b2600125c334824ffd
|
|
| BLAKE2b-256 |
6f75512cc0d4a830989eabb81db1f081ea5d286d24af84d60376d7bbce63a73f
|
File details
Details for the file cfr_decompiler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cfr_decompiler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c507e597973f578d3e103de171b5f7a9f0b7d14ac70fff5e0d13743aa3eeb2f
|
|
| MD5 |
02e627e57f39db07f4544b8fc334b86f
|
|
| BLAKE2b-256 |
2b99cdd983a324155460df083d6c0be461361499944c5fd4c45c9ea79a0e9a92
|