Skip to content

Instantly share code, notes, and snippets.

@t3h2mas
Created September 6, 2017 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t3h2mas/4e6039c40de58473fbb8048ac71fd71d to your computer and use it in GitHub Desktop.
Save t3h2mas/4e6039c40de58473fbb8048ac71fd71d to your computer and use it in GitHub Desktop.
use a hosts list for gobuster's DNS search
#!/bin/bash
set -e
if [[ -z "$2" ]]; then
echo "[!] usage: $0 [HOSTS FILE] [WORDS FILE] [THREADS (optional)]"
exit
fi
hosts=$1
words=$2
threads=50
if [[ ! -z $3 ]]; then
threads=$3
fi
for host in $(cat "$hosts"); do
echo "[*] scanning host $host"
gobuster -m dns -u "$host" -t "$threads" -w "$words" -i | tee "$host.busted"
done
echo "[*] mission complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment