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???
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.
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.
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