Advanced SQL Injection vulnerability scanner using Google dorking techniques
- Google Custom Search Integration: Find vulnerable URLs using search dorks (e.g.,
inurl:product?id=
) - Automated SQLi Testing: Comprehensive checks for error-based, boolean-based, and time-based SQLi
- Concurrent Scanning: Multi-threaded architecture for efficient scanning
- Smart Detection: Dynamic parameter analysis and payload rotation
- CSV Reporting: Export results for further analysis
- Stealth Mode: Randomized delays and user-agent rotation
- Custom Search JSON API Key
- Custom Search Engine (CSE) ID
git clone https://github.com/xfnx-17/DorkHunter.git
cd DorkHunter
python3 -m venv venv
source venv/bin/activate
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
- Get Google API Key
- Create Custom Search Engine
- Run script and enter credentials when prompted
python DorkHunter.py
Workflow:
- Enter Google API credentials
- Input search dork (e.g.,
inurl:login.php?id=
) - Set maximum vulnerable URLs to find
- Choose to save results (CSV report)
- Review detected vulnerabilities
Example Output:
██████╗ ██████╗ ██████╗ ██╗ ██╗██╗ ██╗██╗ ██╗███╗ ██╗████████╗███████╗██████╗
██╔══██╗██╔═══██╗██╔══██╗██║ ██╔╝██║ ██║██║ ██║████╗ ██║╚══██╔══╝██╔════╝██╔══██╗
██║ ██║██║ ██║██████╔╝█████╔╝ ███████║██║ ██║██╔██╗ ██║ ██║ █████╗ ██████╔╝
██║ ██║██║ ██║██╔══██╗██╔═██╗ ██╔══██║██║ ██║██║╚██╗██║ ██║ ██╔══╝ ██╔══██╗
██████╔╝╚██████╔╝██║ ██║██║ ██╗██║ ██║╚██████╔╝██║ ╚████║ ██║ ███████╗██║ ██║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
DorkHunter by xfnx
[+] Found 2 vulnerable URLs:
1. http://vuln-site.com/product?id=1'--
2. http://test-store.com/user?id=2' WAITFOR DELAY '0:0:5'--
📂 DorkHunter/
├── 📄 DorkHunter.py - Main scanner script
├── 📄 LICENSE - MIT/GPL? License file
├── 📄 README.md - Documentation
├── 📄 payloads.txt - SQLi payload database
├── 📄 requirements.txt - Python dependencies
└── 📄 user_agents.txt - Browser signature rotations
- 🔒 API keys are never stored or transmitted
⚠️ Respect robots.txt and website terms of service- ⚖️ Use only on authorized targets
- 📉 API requests are minimized to reduce Google quota usage
Found a bug? Have an improvement?
- Fork the repository
- Create your feature branch
- Submit a pull request
This project is for educational purposes only. Use responsibly.