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

struct.error: unpack requires a string argument of length 8 #1

Closed LTsCreed closed 7 years ago

LTsCreed commented 7 years ago

hi, can you help me with this error? thanks

Decrypt Backup Traceback (most recent call last): File "ROSbackup.py", line 207, in main() File "ROSbackup.py", line 202, in main decrypt(args.input, args.output, args.password) File "ROSbackup.py", line 117, in decrypt magic, length = get_header(input_file) File "ROSbackup.py", line 24, in get_header header = unpack('<II', data) struct.error: unpack requires a string argument of length 8

BigNerd95 commented 7 years ago

Did you try running:

python3 ROSbackup.py ... ?

LTsCreed commented 7 years ago

python ROSbackup.py

./ROSb.. or python3 ROS.. gives me error Traceback (most recent call last): File "ROSbackup.py", line 9, in from Crypto.Cipher import ARC4 ImportError: No module named 'Crypto'

BigNerd95 commented 7 years ago

So now the error is different It seems that you have not installed the Crypto module

BigNerd95 commented 7 years ago

To install it: pip3 install pycrypto