Guest User

NMAPV2.sh

a guest
Feb 2nd, 2017
433
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # NMAP Scan + XML SearchSploit Information
  3. #version
  4. if [ $# -ne 1 ]
  5. then
  6. echo "NMAP Enumeration Script V2"
  7. echo "Usage nmapv2.sh <target>"
  8. exit
  9. fi
  10. mkdir ./$1/
  11. echo '[*] Running version scan.'
  12. nmap -sV --version-all -p- -oX ./$1/version-scan-xml.xml $1 | tee ./$1/version-scan.txt
  13.  
  14. #tcp
  15. echo '[*] Running TCP scan.'
  16. nmap -Pn -A -sC -sS -T 4 -p- $1 | tee ./$1/tcp-scan.txt
  17.  
  18. #aggressive/service
  19. echo '[*] Running aggressive service scan.'
  20. nmap -A $1 | nmap -sC $1 | tee ./$1/aggressive-service.txt
  21.  
  22. #udp
  23. echo '[*] Running UDP scan.'
  24. nmap -Pn -A -sC -sU -T 4 --top-ports 500 $1 | tee ./$1/udp-500.txt
  25.  
  26. #SearchSploit
  27. searchsploit -w --nmap ./$1/version-scan-xml.xml
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×