This tool allows you to extract domains from a IP range, using the historic information archived in Virustotal(using API key). It is usefull if you want to know what domains are behind of this IP address, for example in bug bounty programs one of the first steps is to extract subdomains, this tool can help with this task... first you have to find out the IP range that uses a company. Many times a good start point is to know the AS (Autonomus system) number, then you can find the IP range.
To use this tool you have to set up your Virustotal API key in the code, please sign up on Virustotal then they provide you the API key.
python iptodomain.py -i 184.108.40.206 -f 220.127.116.11 -o 18.104.22.168.txt -v -r IPsCF.txt
iptodomain.py [-h] [-i FIRST_IP] [-f LAST_IP] [-w FILE2] [-o FILE1] [-v] [-r FILE3]
This tool allow to extract domains from IP information on Virustotal and save the output in a file. You have to set up the IP range where you like to extract domain or subdomain. Additionally it is neccesary set up your VirusTotal API key in the code.
-h --help show this help message and exit.
-i FIRST_IP The First IP of the range that you want to scan.
-f LAST_IP The Last IP of the range that you want to scan.
-w FILE2 Please enter the file name where report with all domains and are going to save.
-o FILE1 Please enter the file name where the all domains found are going to save.
-v It shows more information while you are scanning.
-r FILE3 Please enter the name of the final report without duplicate domains results.
This tool was created by:
Juan Esteban Valencia Pantoja