
このツールは、virustotalに保存された情報に基づいてIPアドレスからドメインを抽出します。
Update V2: Python 2.7から3.8.10へ移行されました。現在、入力ファイルとCSV出力ファイルをサポートしています。
説明:
このツールは、Virustotal(APIキーを使用)に保存されている履歴情報を使って、IPレンジからドメインを抽出することができます。このIPアドレスの背後にどのようなドメインがあるかを知りたい場合に便利です。例えば、バグバウンティプログラムでは、最初のステップの1つとしてサブドメインの抽出がありますが、このツールはそのタスクに役立ちます。まず、企業が使用しているIPレンジを特定するか、IPリストを含むファイルを用意する必要があります。多くの場合、AS(自律システム)番号を知ることが良い出発点となり、そこからIPレンジを見つけることができます。
このツールを使用するには、コード内でVirustotalのAPIキーを設定する必要があります。VirustotalにサインアップするとAPIキーが提供されます。または、私のテスト用APIキーを使用してください。
例:
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
使用方法:
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.
このツールの作者:
Juan Esteban Valencia Pantoja