更新 V2:已从 Python 2.7 迁移到 3.8.10。现在支持输入文件和 csv 输出文件。
描述:
该工具允许你利用 Virustotal 中归档的历史信息(使用 API 密钥)从 IP 范围中提取域名。如果你想知道这个 IP 地址背后有哪些域名,这会很有用。例如,在漏洞赏金项目中,最初的步骤之一就是提取子域名,而这个工具可以帮助完成这项任务……首先你必须找出公司使用的 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