khalilasharen

lazy_nmap.py

Apr 9th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. ""
  2. #Lazy Nmap Ver 1.0
  3. #Herbert_The_Perv
  4. #This program allows you to input
  5. #1 of 5 different scans for nmap
  6. #and the best part is your fingers
  7. #don't get tired typing in commands
  8. #thanks: LeXeL, The_UnKn0wn, connection, & Pilopew.
  9. #You guys helped me get to where this program is
  10. #right now
  11. ""
  12. import os
  13. import time
  14. print ("Lazy Nmap")
  15. print ("what would you like to do?")
  16. time.idle = 3
  17. print ("1 = Ping Scan, 2 = Stealth Scan, 3 = Null Scan, 4 = FIN Scan, 5 = XMAS Tree Scan, ")
  18. selection = int(input ("Please select your scan now "))
  19.  
  20. a1 = 1
  21. a2 = 2
  22. a3 = 3
  23. a4 = 4
  24. a5 = 5
  25. if selection == a1:
  26. ip = input ("Enter your target ip/ip's please ")
  27. os.system ('nmap -sP %s' %(ip))
  28.  
  29.  
  30. if selection == a2:
  31. ip = input ("Enter your target ip/ip's please ")
  32. scanports = input ("Enter the port/ports to scan please")
  33. os.system ('nmap -sS -P0 %s -p %s' %(ip, scanports))
  34.  
  35. if selection== a3:
  36. ip = input ("Enter your target ip/ip's please ")
  37. scanports = input ("Enter the port/ports to scan please")
  38. os.system ('nmap -sN -sV -P0 %s -p %s' %(ip, scanports))
  39.  
  40. if selection == a4:
  41. ip = input ("Enter your target ip/ip's please ")
  42. scanports = input ("Enter the port/ports to scan please")
  43. os.system ('nmap -sF -sV -P0 %s -p %s' %(ip, scanports))
  44.  
  45.  
  46. if selection == a5:
  47. ip = input ("Enter your target ip/ip's please ")
  48. scanports = input ("Enter the port/ports to scan please")
  49. os.system ('nmap -sX -sV -P0 %s -p %s' %(ip, scanports))
Advertisement
Add Comment
Please, Sign In to add comment