Skip to content

Instantly share code, notes, and snippets.

@obihann
Created March 13, 2019 11:23
Show Gist options
  • Save obihann/0a90d5cabed47a20fd205fe9225c7f0b to your computer and use it in GitHub Desktop.
Save obihann/0a90d5cabed47a20fd205fe9225c7f0b to your computer and use it in GitHub Desktop.
quick web enumeration script (quick as in to write, not to execute... it could be better)
#!/bin/sh
HOST=$1
UA='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
DATE=$(date +%Y%m%d)
WORDS="/usr/share/wordlists/seclists/Discovery/Web-Content/common.txt"
whatweb --colour=never --log-brief=whatweb_"$HOST"_"$DATE".log "$HOST"
gobuster -n -q -r -e -t 30 \
-w "$WORDS" \
-s "200,204,301,307,405,500" \
-u "$HOST" \
-o gobuster_"$DATE".log \
-a "$UA"
eyewitness --web --threads 10 --no-prompt --results 10 \
--user-agent "$UA" \
-f gobuster_"$DATE".log \
-d eyewitness_"$DATE"
nikto -host "$HOST" -Format txt -output nikto_"$HOST"_"$DATE".log -Save .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment