Simple Python script to enumerate multiple domains and subdomains IPs using the socket module and save them to the ips.txt file.
-
Clone the repository
git clone https://github.com/s4crifice/GetDomainIP.git
-
Create a file containing all desired domains and subdomains.
EXAMPLE scope.txt example.com www.example.com subdomain.example.com
-
Make sure there isn't an ips.txt file in the current directory!
-
Run the script
python3 get-ips.py <input file> <output file>
python3 get-ips.py scope.txt output.txt
This script is under MIT License, feel free to use!