def register_account(): global credentials, count, number_of_accounts p = phpBB.phpBB() try: if len(credentials) < number_of_accounts: account = p.create_account(start_url) if account and len(credentials) < number_of_accounts: credentials.append(account) count += 1 except: pass
time.sleep(0.3) if len(credentials) >= number_of_accounts: break t = threading.Thread(target=register_account) t.start() show_bar = False while threading.activeCount() > 1: time.sleep(0.3) print "[+] The accounts have been created, now it's time to verify them!" count = 0 show_bar = True t = threading.Thread(target=display_bar) t.start() for username, password in credentials: p = phpBB.phpBB() try: p.verify_email(username) except: pass time.sleep(3) count += 1 show_bar = False while threading.activeCount() > 1: time.sleep(0.3) print "[+] All accounts have been verified!" sys.stdout.write("[+] Writing accounts ot %s, " % output_path) sys.stdout.flush() save_credentials(credentials) print "Done"