Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. #!/usr/bin/python
  2. import os
  3. import sys
  4. import platform
  5. def getIP():
  6.      getIP = raw_input('Please enter the target IP: ')
  7.      print('Moving forward... please do not interact with the program unless prompted: ')
  8. def getoptions():
  9.     options = raw_input('Please enter your options leave blank for none: ')
  10.     print('A help page will be generated for nmap just in case you do not know any options')
  11.     print('A prompt will ask you where to store the help page')
  12.     Location = raw_input('Please enter the location for the help page to be stored to: ')
  13.     if os.getuid() == 0:
  14.          os.system('nmap -h > help')
  15.          os.system('cp help "+Location+" ')
  16.          #os.system('clear')
  17.     else:
  18.          print('Sorry Root is required to run this script')
  19.          os.system('exit')
  20. def Run():
  21.     os.system("nmap "+getIP+" "+options+" ")
  22. getIP()
  23. getoptions()
  24. Run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement