Advertisement
Guest User

httpenum.sh

a guest
Feb 2nd, 2017
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement