Page 1 of 1
Dude Password Recovery on Win 7 Platform
Posted: Tue Jun 05, 2012 7:34 pm
by ExtraElectrons
I just spent days setting up the Dude software on my desktop Win 7 machine. I set a Dude password last night, but it does not work today!!!
Can I copy a certain file/folder from my lost password install, Un-Install the dude software, THEN re-Install a clean version, and then copy the files/folder from the orginal install, to recover all that work???
THANKS!!!
Re: Dude Password Recovery on Win 7 Platform
Posted: Thu Jun 07, 2012 9:14 am
by gsandul
This will not work, but passwords are stored in clear text on sqlite database
You can install python 2.7 and run this script to restore your password.
import sqlite3
import sys
def getname(stri, pos):
return stri[pos + 1:pos + ord(stri[pos])+1]
def get_ip_mask(stri, pos):
ip_mask = ''
for i in range(3):
ip_mask = ip_mask + str(ord(stri[pos+i:pos+i+1])) + '.'
ip_mask = ip_mask + str(ord(stri[pos+3:pos+4])) + '/'
for i in range(3):
ip_mask = ip_mask + str(ord(stri[pos+i+4:pos+i+5])) + '.'
ip_mask = ip_mask + str(ord(stri[pos+7:pos+8]))
return ip_mask
conn = sqlite3.connect(sys.argv[1])
for row in conn.execute("select * from objs"):
blobstr = str(row[1])
if (blobstr.find("separatePanels") > 0):
pwd = getname(blobstr,blobstr.find("password")+9)
username = getname(blobstr,blobstr.find("sys-name")+9)
ip_mask = get_ip_mask(blobstr,blobstr.find("allowedAddress")+16)
print username, pwd, ip_mask
Script argument should be file named dude.db located in dude setup folder.
This file is locked by The Dude, that is why you should stop The Dude before you run the script.
Re: Dude Password Recovery on Win 7 Platform
Posted: Tue Jun 12, 2012 1:50 am
by lebowski
When on the rare occasion the dude flips out it usually dumps the entire configuration
very sad news, you should be able to log in as admin with no password or what ever the default password is. There has been very little done with tools to recover real data in a broken database.
Hey gsandul good to see you are still lurking
Re: Dude Password Recovery on Win 7 Platform
Posted: Tue Jun 12, 2012 1:58 pm
by gsandul
Hey gsandul good to see you are still lurking
Yes I do, but no more lots of interesting questions for me.
You remember me.... Nice.
Re: Dude Password Recovery on Win 7 Platform
Posted: Mon Aug 31, 2015 10:20 am
by SiB
It's still work for 4.0b3, THANKS!.
Re: Dude Password Recovery on Win 7 Platform
Posted: Tue May 03, 2016 11:08 pm
by tonygrim
gsandul - you rock! With the assistance of your script I was able to migrate my 4.0b3 database to a new machine, after days of tearing my hair out.
Many thanks!
Tony
Re: Dude Password Recovery on Win 7 Platform
Posted: Tue Jan 24, 2017 2:12 pm
by rodrigomazzali
gsandul - When did you talk about putting in the argument what would it be? Just explaining I do not know anything about Python and I'm with my Dude stopped because I can not remember the admin password for Bkp. Please help me
Re: Dude Password Recovery on Win 7 Platform
Posted: Fri Jun 02, 2017 11:53 pm
by m05gv
Hi, gsandul.
Can you help me?
i've got this error:
line 17, in <module>
conn = sqlite3.connect(sys.argv[1])
IndexError: list index out of range
Thank you.
Re: Dude Password Recovery on Win 7 Platform
Posted: Wed Sep 13, 2017 10:27 am
by Eamerty
I just spent days setting up the Dude software on my desktop Win 7 machine. I set a Dude password last night, but it does not work today!!!
Can I copy a certain file/folder from my lost password install, Un-Install the dude software, THEN re-Install a clean version, and then copy the files/folder from the orginal install,
To complete the
Windows 7 login password reset program???
THANKS!!!
It won't work, you need to find a way to reset your forgotten password ,you can rerun the computer
Re: Dude Password Recovery on Win 7 Platform
Posted: Fri Oct 05, 2018 3:17 pm
by morarz
Hi, gsandul.
Can you help me?
i've got this error:
line 17, in <module>
conn = sqlite3.connect(sys.argv[1])
IndexError: list index out of range
Thank you.
I've the same problem, someone know solution ?
I have a The Dude 4.0 Beta3