Extract password saved in remmina

I had some passwords saved in remmina but like it always happen, I wasn't been able to remember them when needed. Trying to restore them I found that they're encrypted in .remmina directory.

Then I used this script to the decrypt them:

import base64
from Crypto.Cipher import DES3

secret = base64.decodestring('<STRING FROM remmina.prefs>')
password = base64.decodestring('<STRING FROM XXXXXXX.remmina>')

print DES3.new(secret[:24], DES3.MODE_CBC, secret[24:]).decrypt(password)


One thought on “Extract password saved in remmina”

  1. This is fantastic!

    I had to update it a bit for python 3 and deprecation of decodestring.

    Now it goes like this:

    import base64
    from Crypto.Cipher import DES3

    secret = base64.decodebytes(b”)
    password = base64.decodebytes(b”)

    print(DES3.new(secret[:24], DES3.MODE_CBC, secret[24:]).decrypt(password))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.