From 886fbde5543503e0a265ea76ef667821149220b3 Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Fri, 11 May 2018 11:46:41 -0400 Subject: [PATCH] quick script to get IPs from domains quick script to get IPs from domains --- useful_commands_and_scripts/host_DNS_enum.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 useful_commands_and_scripts/host_DNS_enum.sh diff --git a/useful_commands_and_scripts/host_DNS_enum.sh b/useful_commands_and_scripts/host_DNS_enum.sh new file mode 100644 index 0000000..6dc5bc2 --- /dev/null +++ b/useful_commands_and_scripts/host_DNS_enum.sh @@ -0,0 +1,4 @@ +# quick script to get IP addresses from a predefined domain list text file. + +#create a file called domains.txt and exec the following one-liner script. +for url in $(cat domains.txt); do host $url; done | grep "has address" | cut -d " " -f 4 | sort -u