Created
February 9, 2018 15:54
-
-
Save 4ndrej/bda56272cc173274e0dbfda99754d7cc to your computer and use it in GitHub Desktop.
remmina decrypt oneliner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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