A powerful reconnaissance tool for bug bounty hunters and penetration testers to discover origin IP addresses of domains by testing historical DNS records from various sources.
- Multiple Data Sources: Supports SecurityTrails and ViewDNS.info APIs
- Historical IP Discovery: Fetches historical DNS A records to find previous IP addresses
- Origin Server Detection: Tests historical IPs to identify active origin servers
- Concurrent Testing: Multi-threaded scanning for faster results
- Flexible Input: Support for manual IP addresses alongside API sources
- JSON Export: Save results for further analysis
- Python 3.6+
- Required packages:
requests,urllib3
git clone https://github.com/aymencdm/originip.git
cd originippip install -r requirements.txtUsing SecurityTrails:
python originip.py -d example.com -s securitytrails --api-key YOUR_API_KEYUsing ViewDNS.info:
python originip.py -d example.com -s viewdns --api-key YOUR_API_KEYpython originip.py -d example.com -s securitytrails --api-key YOUR_API_KEY \
-p 443 \
-t 10 \
-o results.json \
-a 192.168.1.1 192.168.1.2| Argument | Description | Required |
|---|---|---|
-d, --domain |
Target domain (e.g., example.com) | Yes |
-s, --source |
Data source: securitytrails or viewdns |
Yes |
--api-key |
API key for the selected service | Yes |
-p, --port |
Port to test (default: 80) | No |
-t, --threads |
Number of threads for scanning (default: 5) | No |
-o, --output |
Save results to JSON file | No |
-a, --addresses |
Manual IP addresses to test | No |
- Sign up at SecurityTrails
- Get your API key from the dashboard
- Free tier includes 50 queries per month
- Sign up at ViewDNS.info
- Get your API key from account settings
- Free tier includes 250 queries per month
[*] Testing 15 IPs from securitytrails...
Results:
203.0.113.1:80 -> Status: 200, Origin: True
203.0.113.2:80 -> Status: 403, Origin: False
203.0.113.3:80 -> Status: None, Origin: False
198.51.100.1:80 -> Status: 200, Origin: True
...
Saved to results.json
- Bug Bounty: Discover origin servers behind CDNs like Cloudflare, AWS CloudFront
- Penetration Testing: Find direct access to web applications
- Security Research: Analyze infrastructure changes over time
- OSINT: Gather intelligence on target infrastructure
This tool is intended for authorized security testing and research purposes only. Users are responsible for ensuring they have proper authorization before testing any systems. The authors are not responsible for any misuse of this tool.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Add support for more DNS history providers
- Implement SSL certificate historical data analysis
- Add subdomain enumeration integration
- Create web interface
- Add passive DNS lookup options
This project is licensed under the MIT License - see the LICENSE file for details.
- Initial release
- SecurityTrails and ViewDNS.info support
- Multi-threaded scanning
- JSON export functionality
If you find this tool useful, consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs via Issues
- 💡 Suggesting new features
- 🔧 Contributing code improvements
Created by aymen benlamari for the bug bounty and security research community.
Happy Hunting! 🎯