A powerful and simple Python script that allows you to search breaches using the DeHashed v2 API and exports the results into a clean Excel file for further analysis or investigation.
- 🔐 Authenticated access via API key
- 📄 Exports results to
.xlsxfile - 📚 Flattened, human-readable format
- 📡 Supports large query results with pagination
- 🧹 Clean and structured output format
- 🐍 Compatible with Python 3.9+
git clone https://github.com/ishan-saha/DehashedMe.git
cd DehashedMe
pip install -r requirements.txt
⸻
🔑 Configuration
Create a config.json file in the root directory:
{
"api_key": "YOUR_DEHASHED_API_KEY_HERE"
}
Replace YOUR_DEHASHED_API_KEY_HERE with your actual DeHashed API key.
⸻
🛠️ Usage
python dehashed.py "<search_term>" <output_filename>
Example:
python dehashed.py "gmail.com" gmail_results
This will create an Excel file named gmail_results-dehashed.xlsx in the current directory.
⸻
📦 Output Format
The Excel file includes the following fields (flattened): • Email • Username • IP Address • Password / Hashed Password • Name, DOB, Phone, Address • Company, URL, Social • Raw record flags (e.g., LE only, Unstructured)
⸻
📸 Sample Output
email username ip_address password dob
test@example.com username@example.com 127.0.0.1 examplepassword 01/02/60
⸻
🧩 Dependencies • requests • pandas • openpyxl
Install them via:
pip install requests pandas openpyxl
⸻
If you see warnings like NotOpenSSLWarning, you can suppress them by adding:
import warnings
from urllib3.exceptions import NotOpenSSLWarning
warnings.filterwarnings("ignore", category=NotOpenSSLWarning)
⸻
📄 License
This project is licensed under the MIT License.
⸻
🤝 Contributing
PRs are welcome! If you have suggestions for improvements or bug fixes, feel free to open an issue or submit a pull request.
⸻
📫 Contact
Built with ❤️ by Your Name · Feel free to reach out!