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
Metadata
Release files for cfr-decompiler 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cfr_decompiler-0.1.0.tar.gz | 8.0 kB | Without provenance | Details for cfr_decompiler-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cfr_decompiler-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cfr_decompiler-0.1.0-py3-none-any.whl |
Total release size: 18.8 kB
Release files / cfr_decompiler-0.1.0.tar.gz
| Download URL | cfr_decompiler-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41d8e864d9040b4970956087fc90e837443ed83b29182b207b12fda98fa856dd
|
|
BLAKE2b-256 checksum How to use checksums |
6f75512cc0d4a830989eabb81db1f081ea5d286d24af84d60376d7bbce63a73f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / cfr_decompiler-0.1.0-py3-none-any.whl
| Download URL | cfr_decompiler-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c507e597973f578d3e103de171b5f7a9f0b7d14ac70fff5e0d13743aa3eeb2f
|
|
BLAKE2b-256 checksum How to use checksums |
2b99cdd983a324155460df083d6c0be461361499944c5fd4c45c9ea79a0e9a92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for cfr-decompiler 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.