Community discussions

MikroTik App
 
User avatar
Techsystem
Member
Member
Topic Author
Posts: 337
Joined: Tue Dec 21, 2021 5:12 am

restore a password from a backup file

Sat Apr 15, 2023 3:01 pm

Hello My friends..!
so is there is a way that i can retore the password from a backup file..?
i want to restore a specific backup from a year in my RB2011 router, but i forget the login pass..?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11439
Joined: Thu Mar 03, 2016 10:23 pm

Re: restore a password from a backup file

Sat Apr 15, 2023 8:49 pm

There are two problems:
  1. you need access to device. So either you have to know current password or you have to wipe whole config
  2. it's only possible to restore full config from backup, you can't "cherry-pick" only specific bits
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: restore a password from a backup file

Sat Apr 15, 2023 9:24 pm

If the backup is old enough, like 6.1x, the password is saved basically as clear text (just an XOR...)
If the backup is of a newer version, the hash with other encryption is saved, so it is impossible to get back the plaintext password without using "brute force"...
The recovery of the access passwords of the RouterBOARD is deliberately almost impossible (without brute force or similar), they are not even in the export.
 
optio
Long time Member
Long time Member
Posts: 655
Joined: Mon Dec 26, 2022 2:57 pm

Re: restore a password from a backup file

Sun Apr 16, 2023 2:48 pm

Try with this if you have older ROS version: https://github.com/BigNerd95/RouterOS-Backup-Tools
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: restore a password from a backup file

Sun Apr 16, 2023 11:44 pm

Try with this if you have older ROS version: https://github.com/BigNerd95/RouterOS-Backup-Tools

Warning
User password format

ROS v6.45.1+ removed insecure password storage, so they cannot be extracted with extract_user.py any more.

Who is online

Users browsing this forum: 0xAA55, EmuAGR, ppawe and 59 guests