Aug-06-2020, 02:29 PM
Hi,
I am new to this forum and have only posted one other post but i am working on a few codes at once, I am still not sure whether I am completing these new forum thread correctly.
Below I have been working on a Excel password recovery tool for work as we have had a few occasions where project managers have password protected excels and then forgot the password and they have lost weeks of work because of this. I am trying to be proactive and help as I am the one who pulls the date for them and it is a pain having to run queries over and over.
The code below works but only seems to work on small wordlists, bigger wordlist like rockyou.txt it falls over and just accepts for first password.
I am not getting any errors it just shows:
[+] Password Found: 123456789 ------ which is the first password in the list.
I am new to this forum and have only posted one other post but i am working on a few codes at once, I am still not sure whether I am completing these new forum thread correctly.
Below I have been working on a Excel password recovery tool for work as we have had a few occasions where project managers have password protected excels and then forgot the password and they have lost weeks of work because of this. I am trying to be proactive and help as I am the one who pulls the date for them and it is a pain having to run queries over and over.
The code below works but only seems to work on small wordlists, bigger wordlist like rockyou.txt it falls over and just accepts for first password.
I am not getting any errors it just shows:
[+] Password Found: 123456789 ------ which is the first password in the list.
from pip._vendor.distlib.compat import raw_input from win32com.client import Dispatch file = raw_input('[+] Excel to attack: ') wordlist = raw_input('[+] Wordlist: ') word = open(wordlist, 'r', encoding='utf8', errors='ignore') passlist = word.readlines() word.close() for password in passlist: password = password.strip() print ("[-] Password attempt: "+password) instance = Dispatch('Excel.Application') try: instance.Workbooks.Open(file, False, True, None, password) print ("[+] Password Found: "+password) break except: pass