Pentest Vulnerability Report Hacking Tool (PVRHT.sh)


SUBMITTED BY: newuser00

DATE: Oct. 8, 2023, 6:04 a.m.

FORMAT: Bash

SIZE: 763 Bytes

HITS: 358

  1. #!/bin/bash
  2. # Pentest Vulnerability Report Hacking Tool (PVRHT.sh)
  3. # by +DigitalGoods
  4. d=`date +%d-%m-%Y_%H%M`
  5. echo $d
  6. result="Result${d}"
  7. xml=".xml"
  8. html=".html"
  9. read -p "Type in the IP address you want to scan: " IP
  10. read -p "IP V6? (y/n):" V
  11. clear
  12. if [ "$V" = "y" ]; then
  13. echo "IP V6"
  14. nmap -6 $IP -sS -oX $result
  15. xsltproc $result -o $result$html
  16. rm $result
  17. else
  18. echo "IP V4"
  19. nmap $IP -sS -oX $result
  20. xlstproc $result -o $result$html
  21. rm $result
  22. fi
  23. read -p "Vulnerability attack/scan ?(y/n)" S
  24. if [ "$S" = "y" ] ; then
  25. clear
  26. echo "Vulnerability attack/scan..."
  27. nmap -v --script vuln $IP -oX $result"_Vuln"
  28. xsltproc $result"_Vuln" -o $result"_Vuln"$html
  29. mv $result"_Vuln"$html info.html
  30. rm $result"_Vuln"
  31. fi

comments powered by Disqus