Remmina_mRemoteNG_conv icon indicating copy to clipboard operation
Remmina_mRemoteNG_conv copied to clipboard

Ubuntu 20.04 error

Open epigraphe opened this issue 4 years ago • 7 comments

Traceback (most recent call last):
  File "remmina_mremoteng_conv.py", line 225, in <module>
    main() 
  File "remmina_mremoteng_conv.py", line 189, in main
    if PassDecrypt(root.attrib["Protected"]) != 'ThisIsNotProtected':
  File "remmina_mremoteng_conv.py", line 114, in PassDecrypt
    plaintext = cipher.decrypt_and_verify(ciphertext, tag)
  File "/home/at/.local/lib/python3.8/site-packages/Cryptodome/Cipher/_mode_gcm.py", line 567, in decrypt_and_verify
    self.verify(received_mac_tag)
  File "/home/at/.local/lib/python3.8/site-packages/Cryptodome/Cipher/_mode_gcm.py", line 508, in verify
    raise ValueError("MAC check failed")
ValueError: MAC check failed

What should i do? Thanks

epigraphe avatar Feb 09 '21 09:02 epigraphe

Hi, I seem to have the same issue. Also on Ubuntu 20.04. Remmina installed from ubuntu repo (not from ppa).

python3 remmina_mremoteng_conv.py -f /home/necroub/remmina_import.xml Traceback (most recent call last): File "remmina_mremoteng_conv.py", line 225, in main() File "remmina_mremoteng_conv.py", line 189, in main if PassDecrypt(root.attrib["Protected"]) != 'ThisIsNotProtected': File "remmina_mremoteng_conv.py", line 114, in PassDecrypt plaintext = cipher.decrypt_and_verify(ciphertext, tag) File "/home/necroub/.local/lib/python3.8/site-packages/Cryptodome/Cipher/_mode_gcm.py", line 567, in decrypt_and_verify self.verify(received_mac_tag) File "/home/necroub/.local/lib/python3.8/site-packages/Cryptodome/Cipher/_mode_gcm.py", line 508, in verify raise ValueError("MAC check failed") ValueError: MAC check failed

Thanks!

necronaut1 avatar Apr 26 '21 17:04 necronaut1

Maybe the number of iterations needs to be adjusted to 10000, which works for me, as it is in the specific xml file.

    key = hashlib.pbkdf2_hmac("sha1", key_from_mRemNG.encode(), salt, 10000, dklen=32)

FSpark avatar Aug 01 '24 15:08 FSpark