0

I forgot my password and I wrote this code with Selenium to try to recover my pass, but I don't know how to continue. I can’t reset the password and I am trying to remember it using the function. Something like force brute. So, I dont know how to make a loop generating a new password, with the function, enter it in the box "Contraseña: " until it is correct Can someone help me? I try different ways to continue but I don't know. Is any way to do it?

I have a function that generates a password. The function is call: password_generator

driver = webdriver.Chrome(PATH)

driver.get("http://siga.frba.utn.edu.ar/")
print(driver.title)

link = driver.find_element_by_id("page-try")
link.click()

time.sleep(1)

link = driver.find_element_by_xpath('//*[@id="menu-page-try"]/p[4]/a')
link.click()

time.sleep(1)

search = driver.find_element_by_name("form_email")
search.send_keys("35335")
search.send_keys(Keys.RETURN)

time.sleep(0.5)
  • 2
    If it's your account, then you'd better ask the administration for regaining access, otherwise it's borderline illegal activity. – rawrex May 27 '21 at 02:58
  • It looks like I misunderstood your first question. So, the problem is that you can input your email, but when you click "Solicitar nueva contraseña" it does not work? What if you input a correct email and click this button. – vitaliis May 27 '21 at 03:06
  • Try to use one of these answers https://stackoverflow.com/questions/40269605/how-to-create-a-bruteforce-password-cracker-for-alphabetical-and-alphanumerical and https://stackoverflow.com/questions/11747254/python-brute-force-algorithm and https://stackoverflow.com/questions/66003024/how-do-i-create-a-brute-force-password-finder-using-python – vitaliis May 27 '21 at 03:21

1 Answers1

0

I had a look at the website you were trying to scrape and interact. form_email(element by name) is the email. I guess you could ask to request a new password.