BigNerd95 / RouterOS-Backup-Tools

Tools to encrypt/decrypt and pack/unpack RouterOS v6.13+ backup files
GNU Lesser General Public License v3.0
280 stars 101 forks source link

Can't open #10

Open Batanin opened 4 years ago

Batanin commented 4 years ago

Hello, there is such a situation.

./ROSbackup.py decrypt -i MikroTik-encrypted.backup -o MikroTik-plaintext.backup -p password

Decrypt Backup Traceback (most recent call last): File "./ROSbackup.py", line 426, in main() File "./ROSbackup.py", line 415, in main decrypt(args.input, args.output, args.password) File "./ROSbackup.py", line 219, in decrypt magic, length = get_header(input_file) File "./ROSbackup.py", line 23, in get_header header = struct.unpack('<II', data) struct.error: unpack requires a bytes object of length 8

BigNerd95 commented 4 years ago

Can't help without having the encrypted back file you used

Batanin commented 4 years ago

MikroTik.zip

Batanin commented 4 years ago

???

BigNerd95 commented 4 years ago

This is a plaintext backup

./ROSbackup.py info -i MikroTik.backup
** Backup Info **
RouterOS Plaintext Backup
Length: 91999 bytes

You dont have to decrypt it Just extract

./ROSbackup.py unpack -i MikroTik.backup -d asd
** Unpack Backup **
RouterOS Plaintext Backup
Length: 91999 bytes
Extracting backup...
Wrote 102 files pair in: asd
Batanin commented 4 years ago

Hello, how can I open a. *dat file I need to edit the password on admin. Thanks for the previous answer !!!

Batanin commented 4 years ago

./ROSbackup.py bruteforce -i MikroTik-encrypted.backup -w wordlist.txt

Bruteforce Backup Password RouterOS Encrypted Backup Length: 92035 bytes Salt (hex): f75ca7667705a3cb46dee1a4b403bc3a9c378d0d1a1afd474e6966493ef8ab82 Magic Check (hex): db620f14 Brute forcing... Password NOT found

Batanin commented 4 years ago

And the password is definitely there

Batanin commented 4 years ago

???

Batanin commented 4 years ago

Thank you, I have already reset and reconfigured myself.