MikroTik Tutorial: How to recover RouterOS passwords from a backup file

MikroTik Tutorial: How to recover RouterOS passwords from a backup file

These steps will help you recover a forgotten password from an unencrypted RouterOS backup file. To complete these step we will use a python tool called RouterOS-Backup-Tools written by Lorenzo Santina (BigNerd95). I have included steps specific to Windows and Linux which vary slightly.

Jump to Steps for… Windows | Linux

Windows MikroTik Password Recovery

Install Python 3 and git from Windows

Open a git bash console and create a new directory

Clone the RouterOS-Backup-Tools repo

Create a virtualenv and install the dependency library

Now we are ready to extract our .backup file and decode the passwords. Before beginning this step, copy your backup file into the rostest folder.

Jump to Conclusion


Linux MikroTik Password Recovery

Make sure you have Python 3 installed.

Create a new folder and clone the RouterOS-Backup-Tools repo

Create a virtualenv and install the dependency library

Now we are ready to extract our .backup file and decode the passwords. Before beginning this step, copy your backup file into the rostest folder.

Conclusion

That’s It! You have successfully recovered your forgotten password from a routeros backup file. If you are faced with needing to get a password from an encrypted backup you will need to unencrypted the backup using a bruteforce method. The software package RouterOS-Backup-Tools includes tools for bruteforcing and unencrypting RouterOS backup files but that is beyond the scope of this article.

Let me know what you think, leave a comment below. Did these steps work for you?


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.