Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ "$1" == "-h" ]; then
- echo "web_dir.sh: Gobuster web directory discovery"
- echo "Usage: ./`basename $0` WEB_HOST"
- exit 0
- fi
- if [ "$1" ]; then
- printf "\nRunning gobuster on $1...\n"
- gobuster -u $1 -w /usr/share/dirb/wordlists/common.txt -t 100 &&
- gobuster -u $1 -w /usr/share/seclists/Discovery/Web-Content/common.txt -t 100 &&
- gobuster -u $1 -w /usr/share/wfuzz/wordlist/general/admin-panels.txt -t 100 &&
- gobuster -u $1 -w /usr/share/dirb/wordlists/extensions_common.txt -t 100 &&
- gobuster -u $1 -w /usr/share/dirbuster/wordlists/directory-list-1.0.txt -t 100 &&
- gobuster -u $1 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -t 100 &&
- gobuster -u $1 -w /usr/share/dirb/wordlists/big.txt -t 100 &&
- printf "\nDirectory discovery done!\n"
- else
- echo "Error: No web host specified." >&2
- echo "Usage: ./`basename $0` WEB_HOST"
- exit 1
- fi
Add Comment
Please, Sign In to add comment