Guest User

Untitled

a guest
Oct 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ "$1" == "-h" ]; then
  4. echo "web_dir.sh: Gobuster web directory discovery"
  5. echo "Usage: ./`basename $0` WEB_HOST"
  6. exit 0
  7. fi
  8.  
  9. if [ "$1" ]; then
  10. printf "\nRunning gobuster on $1...\n"
  11. gobuster -u $1 -w /usr/share/dirb/wordlists/common.txt -t 100 &&
  12. gobuster -u $1 -w /usr/share/seclists/Discovery/Web-Content/common.txt -t 100 &&
  13. gobuster -u $1 -w /usr/share/wfuzz/wordlist/general/admin-panels.txt -t 100 &&
  14. gobuster -u $1 -w /usr/share/dirb/wordlists/extensions_common.txt -t 100 &&
  15. gobuster -u $1 -w /usr/share/dirbuster/wordlists/directory-list-1.0.txt -t 100 &&
  16. gobuster -u $1 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -t 100 &&
  17. gobuster -u $1 -w /usr/share/dirb/wordlists/big.txt -t 100 &&
  18.  
  19. printf "\nDirectory discovery done!\n"
  20.  
  21. else
  22. echo "Error: No web host specified." >&2
  23. echo "Usage: ./`basename $0` WEB_HOST"
  24. exit 1
  25. fi
Add Comment
Please, Sign In to add comment