Closed nuclearcat closed 2 years ago
This was original crash:
./ROSbackup.py bruteforce -i cod.backup -w hashash.in-wordlist.txt Bruteforce Backup Password RouterOS Encrypted Backup (rc4-sha1) Length: 21360 bytes Salt (hex): 4e28a40e99993c50587beb7af2a3da5500000000000000000000000000000000 Magic Check (hex): 6dc1b597 Brute forcing... Traceback (most recent call last): File "./ROSbackup.py", line 570, in main() File "./ROSbackup.py", line 567, in main bruteforce(args.input, args.wordlist, args.parallel) File "./ROSbackup.py", line 500, in bruteforce cipher = setup_cipher_rc4(salt, password.strip()) File "./ROSbackup.py", line 55, in setup_cipher_rc4 hash.update(salt + bytes(password, 'ascii')) UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)
This was original crash:
./ROSbackup.py bruteforce -i cod.backup -w hashash.in-wordlist.txt Bruteforce Backup Password RouterOS Encrypted Backup (rc4-sha1) Length: 21360 bytes Salt (hex): 4e28a40e99993c50587beb7af2a3da5500000000000000000000000000000000 Magic Check (hex): 6dc1b597 Brute forcing... Traceback (most recent call last): File "./ROSbackup.py", line 570, in
main()
File "./ROSbackup.py", line 567, in main
bruteforce(args.input, args.wordlist, args.parallel)
File "./ROSbackup.py", line 500, in bruteforce
cipher = setup_cipher_rc4(salt, password.strip())
File "./ROSbackup.py", line 55, in setup_cipher_rc4
hash.update(salt + bytes(password, 'ascii'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)