exploitdb.py
is a Python script that retrieves and organizes Google Dorks from the Google Hacking Database (GHDB) on Exploit-DB. It allows users to extract and save dorks in various formats for analysis and research purposes.
- Scrape Google Dorks from Exploit-DB.
- Organize dorks by category.
- Save dorks to individual category files.
- Save all dorks in a single text file.
- Save the raw JSON response for detailed analysis.
- Python 3.x
- Libraries:
requests
beautifulsoup4
Install the required libraries using pip:
pip install requests beautifulsoup4
Run the script with the following command-line options:
python exploitdb.py [options]
Flag | Description |
---|---|
-i |
Save individual dork categories to separate .txt files. |
-j |
Save the raw GHDB JSON response to all_google_dorks.json . |
-s |
Save all dorks to a single file, all_google_dorks.txt . |
-h |
Show the help message and usage instructions. |
-
Save individual category files:
python exploitdb.py -i
-
Save the JSON response:
python exploitdb.py -j
-
Save all dorks to a single file:
python exploitdb.py -s
-
Perform all actions:
python exploitdb.py -i -j -s
The script creates a directory named dorks/
in the current working directory to store all output files.
- Category Files (
*.txt
): Each dork category is saved to its own file in thedorks/
directory. - JSON File: The entire GHDB response is saved to
dorks/all_google_dorks.json
. - All Dorks File: A combined list of all extracted dorks is saved to
dorks/all_google_dorks.txt
.
The script categorizes dorks into the following categories:
{
"1": "Footholds",
"2": "File Containing Usernames",
"3": "Sensitive Directories",
"4": "Web Server Detection",
"5": "Vulnerable Files",
"6": "Vulnerable Servers",
"7": "Error Messages",
"8": "File Containing Juicy Info",
"9": "File Containing Passwords",
"10": "Sensitive Online Shopping Info",
"11": "Network or Vulnerability Data",
"12": "Pages Containing Login Portals",
"13": "Various Online Devices",
"14": "Advisories and Vulnerabilities"
}
Contributions are welcome! If you'd like to contribute to this project:
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-name
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
This tool is intended for educational and research purposes only. The misuse of this script can lead to legal consequences. Use responsibly and adhere to all relevant laws and guidelines.
Happy Dorking!