A single-file Python toolkit for CTF players, pentesting students, and security hobbyists. It combines utilities for:
- Encoding/decoding
- Crypto attacks and helpers
- Reverse engineering triage
- Web testing payload helpers
- Forensics helpers
- OSINT helpers
- Networking quick checks
- General CTF utilities
Main script: hacking.py
git clone https://github.com/CodeRabbit-byte/Hacking-tools.git
cd Hacking-tools
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install pycryptodome gmpy2 requests owiener pyperclipThe tool still runs without optional packages, but some features will be limited.
python3 hacking.pyThis opens the main menu where you can navigate by entering the numbered options.
python3 hacking.py --magic "ZmxhZ3t0b29sa2l0fQ=="python3 hacking.py --auto ./sample.bin- Unknown encoded strings
- CTF flags hidden through layered encoding
- Choose
Encoding / Magic Decoderfrom main menu. - Paste your input.
- Review all decode attempts (Base64, Base32, Base85, hex, binary, ROT13, Caesar, decimal ASCII, morse, URL, HTML).
- If a flag-like pattern is found, it is highlighted automatically.
If a result looks partially readable, feed that output back into magic decode again.
- RSA small exponent
- RSA common modulus
- RSA Wiener attack
- RSA Fermat factorization
- Manual RSA decrypt
- Vigenère crack
- XOR crack
- Hash identify + wordlist brute-force
- AES-ECB pattern analysis
- Padding-oracle concept demo
- Try Small exponent first when
e=3and plaintext was unpadded. - If same
nappears with two exponents, try Common modulus. - If
dsuspected small, try Wiener. - If
p≈q, try Fermat. - Fall back to Manual decrypt when parameters are known.
python3 hacking.py
# Crypto -> Hash brute force
# Enter target hash + wordlist + algo- Full recon sweep
- String extraction with regex filters
- Function disassembly wrapper
- Binary byte patching
- Anti-debug pattern checks
- ELF header parser
- RE checklist
- Run full recon.
- Extract strings and search
flag|key|pass|secret. - Disassemble suspicious functions (
main,check_flag, etc.). - Patch conditional jumps if needed.
- Re-run and compare behavior.
- SQLi probes (error/boolean/time style checks)
- XSS payload bank
- LFI helper
- JWT helper actions
- Directory brute helper
- SSRF payload generator
- Parameter fuzzer
- Raw HTTP requester
- Use it as a payload + workflow assistant, not a scanner replacement.
- Keep legal scope boundaries strict (CTF/labs/authorized targets only).
- File-type and metadata checks
- Steganography helper commands
- PCAP analysis helper
- File carving helper
- Hex viewer
- PNG LSB extractor
- Entropy calculator
- Start with file analysis and entropy.
- Pull metadata.
- Try strings/hex/LSB.
- Carve with
binwalkif suspicious archive data exists.
- Domain/IP recon helper
- Email header analyzer
- Image metadata guidance
- Username search guidance
- Geolocation helper
- Google dork builder
Some modules provide command/query templates so you can execute quickly with your preferred tools.
- Port scanner
- Banner grabber
- Netcat helper
- Nmap wrapper
- Protocol/hex decode helper
- Basic port scan.
- Banner grab on live ports.
- Deepen with nmap scripts and service versioning.
- Number base conversion
- String/byte/int conversion
- Flag finder regex helper
- URL encode/decode
- Random payload generator
- Flag format validator
- ROT brute
- Frequency analysis
- One-liner cheatsheet
- Quickly validate candidate flags.
- Convert challenge values across decimal/hex/binary.
- Generate test payloads for local exploit prototyping.
A local automated unit test suite is included.
python3 -m unittest -v tests/test_hacking.py
python3 -m py_compile hacking.py tests/test_hacking.pyThe tests cover key deterministic behavior such as decoding helpers, conversion tools, hash identification flow, command execution wrapper behavior, and auto-triage text handling. They also include an in-repo local test website (tests/example.py) used to exercise web/network features like SQLi, LFI, parameter fuzzing, and HTTP request handling in a controlled environment.
- This project is intended for CTFs, labs, and authorized security testing only.
- Some modules call external binaries (
strings,objdump,readelf,nmap, etc.). Install those tools for full functionality. - Optional Python dependencies are auto-detected at runtime.
Reduce repetitive CTF workflow friction so you can focus on analysis and solving.