Skip to content

Instantly share code, notes, and snippets.

@4ndrej
Created February 9, 2018 15:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4ndrej/bda56272cc173274e0dbfda99754d7cc to your computer and use it in GitHub Desktop.
Save 4ndrej/bda56272cc173274e0dbfda99754d7cc to your computer and use it in GitHub Desktop.
remmina decrypt oneliner
# this works only as oneliner
# stolen from comments to https://askubuntu.com/a/379545/123435
python -c "import base64,sys;from Crypto.Cipher import DES3;pc=open('/home/andrej/.config/remmina/remmina.pref').read();pci=pc.index('secret=');secret=pc[pci:pc.index('\n',pci)].split('=',1)[1];cc=open(sys.argv[1]).read();cci=cc.index('password');password=cc[cci:cc.index('\n',cci)].split('=',1)[1];secret,password=base64.decodestring(secret),base64.decodestring(password); print DES3.new(secret[:24], DES3.MODE_CBC, secret[24:]).decrypt(password)" 1486132120333.remmina
# remmina config is at ~/.config/remmina/remmina.pref
# config files are at ~/.local/share/remmina/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment