Guest User

Untitled

a guest
May 16th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. '''
  2. easy_scan.py
  3. Author: BGS
  4. Date: January 05
  5. Modules needed for manual installation : python-nmap (sudo easy_install python-nmap
  6. '''
  7. #! /usr/bin/env python
  8.  
  9. import nmap, argparse, os
  10.  
  11. parser = argparse.ArgumentParser(prog='easy_scan.py',description='Produce custom logs from nmap scans.')
  12. parser.add_argument('--ip', nargs='*', action='store', type=str, dest ='ip_list', help='Place here the ip addreses to scan.')
  13. parser.add_argument('--port-state' nargs='*', action='store',dest='port_list', type=int , help='Get the state of the ports [open] [closed] [filtered]')
  14. parser.add_argument('--class-scan', action='store', dest='ip_class', help='Scan an ip class ex (79.114)')
  15. parser.add_argument('--version', action='version', version='%(prog)s 1.0')
  16. args = parser.parse_args()
  17.  
  18. print ' --ip == ', args.ip_list
  19. print ' --port-state == ', args.port_list
  20. print ' --class-scan == ', args.ip_class
Add Comment
Please, Sign In to add comment