LootBin is a multi-threaded Python tool to hunt public pastes on termbin.com, looking for interesting content based on keywords you provide. It automatically saves found links and matching pastes into organized folders — perfect for research, OSINT, or just exploring what's out there.
- Multi-threaded scanning
- Custom keywords to search for
- Saves matching links & full pastes
- Command-line configurable (threads, delay, loot folder, etc.)
- Clean logging to console and file
- Only logs useful events (found, loot, errors)
git clone https://github.com/Ninja-Yubaraj/LootBin.git
cd LootBinpython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtNote: If
requirements.txtisn’t there, install manually:
pip install requestsDefault files & folders:
keywords.txt→ keywords (one per line)loot/→ folder to save lootfoundlinks.txt→ found 200 OK URLsscanner.log→ log file
python LootBin.pypython LootBin.py \
--threads 20 \
--delay 0.1 \
--keywords mywords.txt \
--loot myloot \
--found links.txt \
--log mylog.log| Option | Description | Default |
|---|---|---|
--threads |
Number of worker threads | 10 |
--delay |
Delay between starting new tasks (seconds) | 0.2 |
--keywords |
Path to keywords file | keywords.txt |
--loot |
Folder to save loot | loot |
--found |
File to save found 200 OK links | foundlinks.txt |
--log |
Log file | scanner.log |
- Loot folder: text files named by random suffix, containing matching pastes
- foundlinks.txt: list of termbin links returning 200 OK
- scanner.log: clean logs of useful events
Pull requests & suggestions welcome! Feel free to fork and add:
- Two-stage scan: first match keyword list (cheap), then run regex/entropy checks on the matched line + a small context window (±3–6 lines). This will reduce noise drastically.
- Entropy filter: compute Shannon entropy for candidate strings. Many real secrets are high-entropy; normal words are lower. TruffleHog-style tools combine regex + entropy.
- False-positive whitelist: maintain an “exclude words” list for common false positives (e.g., example, localhost, test, example.com, sample API keys used in docs). Many tools allow exclude_regex or exclude_words.
- regex support
- Colored logs
- JSON output
- Live stats
- Dockerfile
Made with ❤️ by Ninja-Yubaraj
For educational & research purposes only. Use responsibly!