Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ""
- #Lazy Nmap Ver 1.0
- #Herbert_The_Perv
- #This program allows you to input
- #1 of 5 different scans for nmap
- #and the best part is your fingers
- #don't get tired typing in commands
- #thanks: LeXeL, The_UnKn0wn, connection, & Pilopew.
- #You guys helped me get to where this program is
- #right now
- ""
- import os
- import time
- print ("Lazy Nmap")
- print ("what would you like to do?")
- time.idle = 3
- print ("1 = Ping Scan, 2 = Stealth Scan, 3 = Null Scan, 4 = FIN Scan, 5 = XMAS Tree Scan, ")
- selection = int(input ("Please select your scan now "))
- a1 = 1
- a2 = 2
- a3 = 3
- a4 = 4
- a5 = 5
- if selection == a1:
- ip = input ("Enter your target ip/ip's please ")
- os.system ('nmap -sP %s' %(ip))
- if selection == a2:
- ip = input ("Enter your target ip/ip's please ")
- scanports = input ("Enter the port/ports to scan please")
- os.system ('nmap -sS -P0 %s -p %s' %(ip, scanports))
- if selection== a3:
- ip = input ("Enter your target ip/ip's please ")
- scanports = input ("Enter the port/ports to scan please")
- os.system ('nmap -sN -sV -P0 %s -p %s' %(ip, scanports))
- if selection == a4:
- ip = input ("Enter your target ip/ip's please ")
- scanports = input ("Enter the port/ports to scan please")
- os.system ('nmap -sF -sV -P0 %s -p %s' %(ip, scanports))
- if selection == a5:
- ip = input ("Enter your target ip/ip's please ")
- scanports = input ("Enter the port/ports to scan please")
- os.system ('nmap -sX -sV -P0 %s -p %s' %(ip, scanports))
Advertisement
Add Comment
Please, Sign In to add comment