SHARE
TWEET

httpenum.sh

a guest Feb 2nd, 2017 335 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. if [ $# -ne 3 ]
  3.   then
  4.     echo "HTTP Enumeration Script V2"
  5.     echo "Usage httpenum.sh <target> <port> <DirSearch Extension Module (e.g PHP, ASP, ALL)>"
  6.     exit
  7. fi
  8.  
  9. echo "Running DirSearch..."
  10. python3 /root/Desktop/dirsearch-master/dirsearch.py -u http://$1:$2 -e $3 --plain-text-report=./$1/dirsearch-report.txt --random-agents | tee
  11.  
  12. echo "Running NMap HTTP Enumeration"
  13. nmap --script=http-enum $1 | tee -a ./$1/http-enum.txt
  14.  
  15. echo "Running Nikto Vulnerability Assessment"
  16. nikto -h http://$1:$2 | tee -a ./$1/nikto.txt
  17.  
  18. echo "Running NMap HTTP Vuln Assessment"
  19. nmap --script=http-vuln* $1 | tee -a ./$1/http-vuln.txt
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top