BigNerd95 / RouterOS-Backup-Tools

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

Add to dependencies - pycryptodome #9

Open blessendor opened 4 years ago

blessendor commented 4 years ago

pip install pycryptodome

RouterOS-Backup-Tools# ./ROSbackup.py info -i CCR1036-12G-4S-20190103-1022.backup Traceback (most recent call last): File "./ROSbackup.py", line 8, in from Crypto.Cipher import ARC4 ImportError: No module named 'Crypto'

blessendor commented 4 years ago

btw it did not resolve an error(

BigNerd95 commented 4 years ago

I used pycrypto, not pycryptodome I'll update my project next days

ngalfas commented 4 years ago

i am trying to install pycrypto and it seems to be a total waste of time.
while cryptodome installed flawlessly. please update your code, i would love to test it.

BigNerd95 commented 4 years ago

Did you install it with pip or pip3? My tool uses python3 so you have to install it with pip3

ngalfas commented 4 years ago

just managed it. win10 x64 python 3.8 i installed with pip. after doing all the necessary windows tricks for Crypto, it finally installed... but with a lot of pain :)

ok, i got the IDX and DAT files. i thought i was going to get a plaintext config script :)

BigNerd95 commented 4 years ago

Backup files contains all configs files (.idx and .dat) contained in /flash/rw/store/ My tool simply decrypt and extract them Nothing else

You can extract info using strings command on .dat files