Community discussions

MikroTik App
 
ExtraElectrons
just joined
Topic Author
Posts: 1
Joined: Tue Jun 05, 2012 7:24 pm

Dude Password Recovery on Win 7 Platform

Tue Jun 05, 2012 7:34 pm

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!!! :D
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Dude Password Recovery on Win 7 Platform

Thu Jun 07, 2012 9:14 am

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.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Dude Password Recovery on Win 7 Platform

Tue Jun 12, 2012 1:50 am

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 :)
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Dude Password Recovery on Win 7 Platform

Tue Jun 12, 2012 1:58 pm

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. :)
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: Dude Password Recovery on Win 7 Platform

Mon Aug 31, 2015 10:20 am

It's still work for 4.0b3, THANKS!.
 
tonygrim
just joined
Posts: 6
Joined: Fri Apr 22, 2016 12:12 am

Re: Dude Password Recovery on Win 7 Platform

Tue May 03, 2016 11:08 pm

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

Many thanks!

Tony
 
rodrigomazzali
just joined
Posts: 1
Joined: Tue Jan 24, 2017 2:04 pm

Re: Dude Password Recovery on Win 7 Platform

Tue Jan 24, 2017 2:12 pm

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
 
m05gv
just joined
Posts: 1
Joined: Fri Jun 02, 2017 11:49 pm

Re: Dude Password Recovery on Win 7 Platform

Fri Jun 02, 2017 11:53 pm

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.
 
Eamerty
just joined
Posts: 1
Joined: Wed Sep 13, 2017 10:19 am

Re: Dude Password Recovery on Win 7 Platform

Wed Sep 13, 2017 10:27 am

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!!! :D
It won't work, you need to find a way to reset your forgotten password ,you can rerun the computer
 
morarz
just joined
Posts: 3
Joined: Fri Aug 22, 2014 11:59 am

Re: Dude Password Recovery on Win 7 Platform

Fri Oct 05, 2018 3:17 pm

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

Who is online

Users browsing this forum: No registered users and 36 guests