Ejemplo n.º 1
0
        '--header',
        dest="header",
        type=str,
        default=False,
        help="Extract header(s) from response, i.e: Server,X-Powered-By")

    proxy = args.add_mutually_exclusive_group(required=False)
    proxy.add_argument('--proxy',
                       dest='proxy',
                       action='append',
                       default=[],
                       help='Proxy requests (IP:Port)')
    proxy.add_argument('--proxy-file',
                       dest='proxy',
                       default=False,
                       type=lambda x: file_exists(args, x),
                       help='Load proxies from file for rotation')

    args.add_argument('--proto',
                      dest="protocol",
                      type=str,
                      default=False,
                      help="Define protocol {http,https}")
    args.add_argument('--resolve',
                      dest='resolve',
                      action='store_true',
                      help='Resolve all DNS names before enumeration')
    args.add_argument(dest='target', nargs='+', help='Target')
    args = args.parse_args()

    cliLogger = setup_consoleLogger(spacers=[
Ejemplo n.º 2
0
        sleep(0.05)

if __name__ == '__main__':
    args = argparse.ArgumentParser(description="\t\t{0}".format(argv[0]), formatter_class=argparse.RawTextHelpFormatter, usage=argparse.SUPPRESS)
    args.add_argument('-t', dest='timeout', type=int, default=4, help='Connection timeout')
    args.add_argument('-v', dest="verbose", action='store_true', help='Show full responses')
    args.add_argument('-T', dest='max_threads', type=int, default=45, help='Max threads (Default: 5)')
    args.add_argument('-o', dest='outfile', action='store', help='Filename to write results (optional)')

    args.add_argument('--port', dest="port", type=int, default=False,help="Define request port")
    args.add_argument('--page', dest="page", type=str, default='/',help="Define request page")
    args.add_argument('-H','--header', dest="header", type=str, default=False, help="Extract header(s) from response, i.e: Server,X-Powered-By")

    proxy = args.add_mutually_exclusive_group(required=False)
    proxy.add_argument('--proxy', dest='proxy', action='append', default=[], help='Proxy requests (IP:Port)')
    proxy.add_argument('--proxy-file', dest='proxy', default=False, type=lambda x: file_exists(args, x), help='Load proxies from file for rotation')

    args.add_argument('--proto', dest="protocol", type=str, default=False,help="Define protocol {http,https}")
    args.add_argument('--resolve', dest='resolve', action='store_true', help='Resolve all DNS names before enumeration')
    args.add_argument(dest='target', nargs='+', help='Target')
    args = args.parse_args()

    cliLogger = setup_consoleLogger(spacers=[45,30,])
    fileLogger = setup_fileLogger(args.outfile, mode='w')
    cliLogger.info(BANNER)

    urls = []
    tmp_ip = ipparser(args.target[0], resolve=args.resolve, open_ports=True, exit_on_error=False, debug=False)
    for x in sample(tmp_ip, len(tmp_ip)):
        proto = [args.protocol] if args.protocol else ['http', 'https']
        for p in proto:
Ejemplo n.º 3
0
                                            proxy = args.proxy,
                                            jitter = args.jitter,
                                            verbose = args.verbose)
                x = threading.Thread(target=(worker), args=(context,),)
                x.daemon = True
                x.start()
        while threading.active_count() >= args.max_threads:
            sleep(0.05)
    while threading.active_count() > 1:
        sleep(0.05)

if __name__ == '__main__':
    args = argparse.ArgumentParser(description="\t\t{0}".format(argv[0]), formatter_class=argparse.RawTextHelpFormatter, usage=argparse.SUPPRESS)
    user = args.add_mutually_exclusive_group(required=True)
    user.add_argument('-u', dest='username', type=str, action='append', help='Username/Emails')
    user.add_argument('-U', dest='username', default=False, type=lambda x: file_exists(args, x),help='User file to spray {Users.txt}')

    passwd = args.add_mutually_exclusive_group(required=True)
    passwd.add_argument('-p', dest='password', type=str, action='append', help='Single Password')
    passwd.add_argument('-P', dest='password', default=False, type=lambda x: file_exists(args, x),help='Password file to spray {Pass.txt}')

    proxy = args.add_mutually_exclusive_group(required=False)
    proxy.add_argument('--proxy', dest='proxy', action='append', default=[], help='Proxy requests (IP:Port)')
    proxy.add_argument('--proxy-file', dest='proxy', default=False, type=lambda x: file_exists(args, x),help='Load proxies from file for rotation')

    args.add_argument('-o', dest='outfile', action='store', help='Filename to write results (optional)')
    args.add_argument('-d', dest='domain', type=str, default=False, help='Domain Suffix')
    args.add_argument('-m', dest='method', choices=['GET', 'POST'], default='GET', help='HTTP request method')
    args.add_argument('-a', dest='auth', choices=['ntlm', 'basic', 'digest'], default='basic', help='HTTP Auth method')
    args.add_argument('-j', dest='jitter', type=int, default=0, help='Seconds to sleep until thread is released (Default: 0)')
    args.add_argument('-T', dest='max_threads', type=int, default=5, help='Max threads (Default: 5)')