Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- easy_scan.py
- Author: BGS
- Date: January 05
- Modules needed for manual installation : python-nmap (sudo easy_install python-nmap
- '''
- #! /usr/bin/env python
- import nmap, argparse, os
- parser = argparse.ArgumentParser(prog='easy_scan.py',description='Produce custom logs from nmap scans.')
- parser.add_argument('--ip', nargs='*', action='store', type=str, dest ='ip_list', help='Place here the ip addreses to scan.')
- parser.add_argument('--port-state' nargs='*', action='store',dest='port_list', type=int , help='Get the state of the ports [open] [closed] [filtered]')
- parser.add_argument('--class-scan', action='store', dest='ip_class', help='Scan an ip class ex (79.114)')
- parser.add_argument('--version', action='version', version='%(prog)s 1.0')
- args = parser.parse_args()
- print ' --ip == ', args.ip_list
- print ' --port-state == ', args.port_list
- print ' --class-scan == ', args.ip_class
Add Comment
Please, Sign In to add comment