HackingScripts/gobuster.sh

17 lines
317 B
Bash
Raw Normal View History

2020-01-28 22:15:42 +01:00
#!/usr/bin/bash
if [ $# -lt 1 ]; then
echo "Invalid usage: $0 <host>"
exit
fi
HOST=$1
EXTENSIONS=""
if [ $# -gt 1 ]; then
EXTENSIONS="-x ${2}"
fi
gobuster dir --url="${HOST}" --wordlist="/usr/share/wordlists/SecLists/Discovery/Web-Content/raft-large-words-lowercase.txt" \
-k "${EXTENSIONS}" -b "403,404"