
이 도구는 virustotal에 저장된 정보를 기반으로 IP 주소에서 도메인을 추출합니다.
업데이트 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