def submit(url, options, tryCreds, result): try: proc = startBrowser(options.timeout) printf("[+] Checking %s" %(url)) proc.open(url) loginInfo = parseLoginForm(proc.forms()) except Exception as err: if options.verbose: printf("[x] ReAuth: %s at %s" %(err, url), "bad") if not loginInfo: if options.verbose: printf("[x] ReAuth: Can't find login form at %s" %(url), "bad") else: try: options.url = url loginbrute.submit( # Reverse username + password. Dynamic submit in loginbrute options, loginInfo, tryCreds[-2:][::-1], result ) except Exception as err: if options.verbose: printf("[x] ReAuth: Submitting error for %s" %(err), "bad")
def submit(url, options, tryCreds, result): try: proc = startBrowser() utils.printf("[+] Checking %s" %(url)) proc.open(url) loginInfo = parseLoginForm(proc.forms()) except Exception as err: if options.verbose: utils.printf("[!] ReAuth: %s at %s" %(err, url), "bad") if not loginInfo: if options.verbose: utils.printf("[!] ReAuth: Can't find login form at %s because my ass is blind" %(url), "bad") else: try: options.url = url loginbrute.submit( options, loginInfo, tryCreds[-2:][::-1], result ) except Exception as err: if options.verbose: utils.printf("[!] ReAuth: Submitting error for %s" %(err), "bad")
def submit(url, options, tryCreds, result): try: proc = Browser() events.info("Checking %s" % (url), "REAUTH") proc.open(url) loginInfo = find_login_form(proc.forms()) except Exception as error: events.error("%s" % (error), "REAUTH") sys.exit(1) if not loginInfo: events.error("No login form at %s" % (url), "REAUTH") sys.exit(1) else: try: options.url = url loginbrute.submit( # Reverse username + password. Dynamic submit in loginbrute options, loginInfo, tryCreds[-2:][::-1], result) except Exception as error: events.error("%s" % (error), "REAUTH") sys.exit(1)