Of course, for a networker, you must be familiar with this proxy router device, in this case I will demonstrate how to recover the username and password in the proxy backup file.
1. Download the RouterOS-Backup-Tools file
$ git clone https://github.com/BigNerd95/RouterOS-Backup-Tools.git
2. If so, make sure to install pip3
$ sudo apt install python3-pip
3. Next we will install the required library dependencies
$
pip3 install pycryptodome
Now we just need to run the file, here I will give an example of a file that I already have. You can use the command as below and if successful it will produce output as drawn.
┌──(dig㉿dig)-[~/CTF/mikrotikbackupXcode]
└─$ ls 1 ⚙
mikrotik.backup mikrotik.backup.zip
┌──(dig㉿dig)-[~/CTF/mikrotikbackupXcode]
└─$ python3 /home/dig/RouterOS-Backup-Tools/ROSbackup.py unpack -i mikrotik.backup -d mikrotik 1 ⚙
** Unpack Backup **
RouterOS Plaintext Backup
Length: 7459 bytes
Extracting backup...
Wrote 98 files pair in: mikrotik
┌──(dig㉿dig)-[~/CTF/mikrotikbackupXcode]
└─$ ls 1 ⚙
mikrotik mikrotik.backup mikrotik.backup.zip
┌──(dig㉿dig)-[~/CTF/mikrotikbackupXcode]
└─$ python3 /home/dig/RouterOS-Backup-Tools/extract_user.py mikrotik/user.dat 1 ⚙
User: admin
Pass:
User: admin
Pass: secret900
0 Comments