Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import sys
- import platform
- def getIP():
- getIP = raw_input('Please enter the target IP: ')
- print('Moving forward... please do not interact with the program unless prompted: ')
- def getoptions():
- options = raw_input('Please enter your options leave blank for none: ')
- print('A help page will be generated for nmap just in case you do not know any options')
- print('A prompt will ask you where to store the help page')
- Location = raw_input('Please enter the location for the help page to be stored to: ')
- if os.getuid() == 0:
- os.system('nmap -h > help')
- os.system('cp help "+Location+" ')
- #os.system('clear')
- else:
- print('Sorry Root is required to run this script')
- os.system('exit')
- def Run():
- os.system("nmap "+getIP+" "+options+" ")
- getIP()
- getoptions()
- Run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement