Created
September 6, 2017 12:32
-
-
Save t3h2mas/4e6039c40de58473fbb8048ac71fd71d to your computer and use it in GitHub Desktop.
use a hosts list for gobuster's DNS search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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