Dude Password Recovery on Win 7 Platform

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!!! :frowning:
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!!! :smiley:

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 :frowning: 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 :slight_smile:

Yes I do, but no more lots of interesting questions for me. :frowning:
You remember me… Nice. :slight_smile:

It’s still work for 4.0b3, THANKS!.

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. :smiley:

Many thanks!

Tony

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

Hi, gsandul.

Can you help me?

i’ve got this error:
line 17, in
conn = sqlite3.connect(sys.argv[1])
IndexError: list index out of range

Thank you.

It won’t work, you need to find a way to reset your forgotten password ,you can rerun the computer

I’ve the same problem, someone know solution ?
I have a The Dude 4.0 Beta3