A tool to detect sensitive information leaks in code
Project description
🚀 LeakHunt v2.2.4 - Production Ready Secret Scanner
Independent secret scanner for bug bounty hunters and security testers. Scans URLs, local files, and directories to detect exposed secrets using pattern matching, entropy analysis, and severity classification.
🆕 What's New in v2.2.4
- Added repository and project URLs
- Enhanced PyPI metadata and keywords
- Improved README rendering on PyPI
- Added maintainer details
Previous v2.2.3 highlights
- Tightened generic and environment-variable detection to reduce false positives in UI/frontend code.
- Added sensitive keyword, entropy, score, value sanity, duplicate-value, and JavaScript-aware filtering.
- Bumped package metadata for the v2.2.4 release.
Full history: CHANGELOG.md
⚙️ Installation
pip install -r requirements.txt
pip install .
🚀 CLI Usage
# mixed targets
leakhunt -t 8 -o findings.json https://example.com/app.js ./local.js
# multiple URLs
leakhunt -u https://example.com/app.js -u https://example.com/main.js
# targets from file
leakhunt -U lab/targets.txt -t 10 -v
# local files
leakhunt -f lab/index.html -f lab/test_private_key.txt
# Bug Bounty
leakhunt --safe-mode -t 15 -U targets.txt -o findings.json -v
# Lab Testing
leakhunt --safe-mode -U lab/targets.txt
# Custom Patterns
leakhunt --patterns-dir patterns/ test.txt
# Dry Run
leakhunt --dry-run -U urls.txt
# Low Entropy
leakhunt --entropy-threshold 3.0 --safe-mode files/
🧪 Local Testing Lab
- Start a local server from repo root
- In another terminal:
leakhunt -U lab/targets.txt -t 5 -v -o lab/results.json
Lab includes:
lab/index.html→ dummy tokenslab/test_private_key.txt→ dummy private key
⚠️ Ethics Warning
Use LeakHunt only on systems you own or have explicit authorization to test. Unauthorized scanning may violate laws and responsible disclosure policies.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 leakhunt-2.2.4.tar.gz.
File metadata
- Download URL: leakhunt-2.2.4.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cc04a53c07e6c0cd7687e7cfc4fef098c312390f27c1de4b3027eea458b763e
|
|
| MD5 |
9e2baa9078272d027410e0a7292648b6
|
|
| BLAKE2b-256 |
7228205b1fd4366d90d17376b59973000b1b6f6b9287f9d0daeb0d4c0425f891
|
File details
Details for the file leakhunt-2.2.4-py3-none-any.whl.
File metadata
- Download URL: leakhunt-2.2.4-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cfc9cb2d6b82691d746aec43e98fdbc6ee75c91a50e4722b4034d56efd3bbd4
|
|
| MD5 |
83996cf7f10ee3acb2a6c4ede9ac1227
|
|
| BLAKE2b-256 |
86c84173abc3fe3d591037f41d057b4766b23d57618808bf89076d7e8a579d66
|