Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/bash
  2. echo " hello this script will scan a target using Nmap and xprobe2\n"
  3. echo "PLease type in a target on the network"
  4.  
  5. read target
  6.  
  7.  
  8.  
  9. if ping -c 5 $target
  10. then echo $target is pinged
  11. else echo $target not pinged; exit 1
  12. fi
  13.  
  14.  
  15. nmap -A $target
  16.  
  17.  
  18. echo "Now were going to use xprobe2 to grab a more accurate Operating system reading"
  19.  
  20. xprobe2 -v $target
  21.  
  22. echo completed
  23. sleep 2
  24.  
  25. echo SYN port scan
  26.  
  27. hping3 -S -8 1-1000 $target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement