import optparse
parser = optparse.OptionParser('[-] Usage %prog '+
'-H -l [-p -F ]')
parser.add_option('-H', dest='tgtHost', type='string',
help='specify the target address[es]')
parser.add_option('-p', dest='lport', type='string',
help='specify the listen port')
parser.add_option('-l', dest='lhost', type='string',
help='specify the listen address')
parser.add_option('-F', dest='passwdFile', type='string',
help='password file for SMB brute force attempt')
(options, args) = parser.parse_args()
...............................................................认真写每篇博客,如同我对待生活............................................................