Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MremoteNG Password Decryptor
import base64
import md5
import sys
from Crypto.Cipher import AES
key= md5.new("mR3m").digest()
encryptPassword = sys.argv[1]
pwdBase64 = base64.b64decode(encryptPassword)
iv = pwdBase64[:16]
encryptDigest = pwdBase64[16:]
decryptor = AES.new(key, AES.MODE_CBC, iv)
password = decryptor.decrypt(encryptDigest)
if len(password)>0 and (ord(password[-1]) < 33 or ord(password[-1]) > 126):
password = password.strip(password[-1])
print password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment