Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04 error #7

Open
epigraphe opened this issue Feb 9, 2021 · 7 comments
Open

Ubuntu 20.04 error #7

epigraphe opened this issue Feb 9, 2021 · 7 comments

Comments

@epigraphe
Copy link

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

@necronaut1
Copy link

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!

@FSpark
Copy link

FSpark commented Aug 1, 2024

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)

@seb-bau
Copy link

seb-bau commented Oct 26, 2024

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)

Can confirm this works! Thank you!

@FSpark
Copy link

FSpark commented Oct 26, 2024

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)

Can confirm this works! Thank you!

Haha, knew this would come in handy for somebody—glad it did!

@mkud
Copy link
Owner

mkud commented Oct 26, 2024

Is it system/version specific or can be used in all cases?

What XML file do you mean?

@FSpark
Copy link

FSpark commented Oct 26, 2024

Is it system/version specific or can be used in all cases?

What XML file do you mean?

It is the confCons.xml exported by mRemoteNG. It is at the beginning of the file. I am not sure whether it is related to the version. I think it is part of the file metadata.

@mkud
Copy link
Owner

mkud commented Oct 26, 2024

Maybe someone can make a normal universal patch with reading the configuration file.
I'm just far away from all this and can't even test it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants