
Esta herramienta extrae dominios de una dirección IP basándose en la información guardada en virustotal.
Actualización V2: Se migró de Python 2.7 a 3.8.10. Ahora admite un archivo de entrada y un archivo de salida CSV.
Descripción:
Esta herramienta te permite extraer dominios de un rango de IP, utilizando la información histórica archivada en Virustotal (usando clave API). Es útil si quieres saber qué dominios están detrás de esta dirección IP, por ejemplo, en programas de bug bounty uno de los primeros pasos es extraer subdominios, esta herramienta puede ayudar con esta tarea... primero tienes que averiguar el rango de IP que usa una empresa O puedes proporcionar un archivo con la lista de IP. Muchas veces un buen punto de partida es conocer el número AS (Sistema Autónomo), luego puedes encontrar el rango de IP.
Para usar esta herramienta tienes que configurar tu clave API de Virustotal en el código, por favor regístrate en Virustotal y luego te proporcionarán la clave API o usa mi clave API de prueba.
Ejemplo:
python3 iptodomain3.py -f ips.txt -w output.csv -v
python3 iptodomain.py -l 103.22.201.25 -k 103.22.201.255 -o result.txt
Uso:
python3 iptodomain.py
usage: iptodomain.py [-h] [-l FIRST_IP] [-k LAST_IP] [-f INPUT_FILE] [-w FILE2] [-o FILE1] [-v] [-r FILE3]
-h, --help show this help message and exit
-l FIRST_IP The First IP of the range that you want to scan
-k LAST_IP The Last IP of the range that you want to scan.
-f INPUT_FILE Input file with IPs.
-w FILE2 Please enter the output file name, it will save a report with all domains and its IPs in .csv format
-o FILE1 Please enter the file name where the all IPs and domains found are going to save in txt format.
-v It shows more information while you are scanning.
-r FILE3 Please enter the output file name, it will save a report without duplicate domains results
This tool allow to extract domains from IP information on Virustotal and save
the output in a file(txt, csv). You have to set up the IP range where you like to
extract domain or subdomain or provide an IP list. Additionally it is neccesary set up your
VirusTotal API key in the code.
Esta herramienta fue creada por:
Juan Esteban Valencia Pantoja