Projects STRLCPY aardwolf Commits ba7edf23
🤬
  • ■ ■ ■ ■ ■ ■
    aardwolf/examples/scanners/__main__.py
    skipped 22 lines
    23 23   
    24 24   scannertpes_usage = '\r\nall: Runs all scanners\r\n'
    25 25   for k in rdpscan_options:
    26  - scannertpes_usage += '%s: %s\r\n' % (k, rdpscan_options[k][1])
     26 + scannertpes_usage += ' %s: %s\r\n' % (k, rdpscan_options[k][1])
    27 27  
    28 28   usage = """
    29 29  Scanner types (-s param):
    30  - %s
    31  -"""% (scannertpes_usage,)
     30 + %s
     31 +"""% scannertpes_usage
    32 32   
    33 33   parser = argparse.ArgumentParser(description='RDP scanner', usage=usage)
    34 34   parser.add_argument('-w', '--worker-count', type=int, default=100, help='Parallell count')
    35 35   parser.add_argument('-t', '--timeout', type=int, default=10, help='Timeout for each connection')
    36 36   parser.add_argument('--no-progress', action='store_false', help='Disable progress bar')
    37 37   parser.add_argument('-o', '--out-file', help='Output file path.')
    38  - parser.add_argument('-s', '--scan', nargs='+', required=True, help='Scanner type')
     38 + parser.add_argument('-s', '--scan', action='append', required=True, help='Scanner type')
    39 39   parser.add_argument('-e', '--errors', action='store_true', help='Includes errors in output. It will mess up the formatting!')
    40 40   parser.add_argument('url', help = 'Connection string in URL format')
    41 41   parser.add_argument('targets', nargs='*', help = 'Hostname or IP address or file with a list of targets')
    skipped 37 lines
Please wait...
Page is in error, reload to recover