Encrypt RDP password in Python

Dirk Schmitz send me his Python version of encrypting the RDP Password:

Read the original article here: http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/

Leave a Reply

  1. Thank’s, this really worked well, after a bit of fiddling (donation will be given asap). For Python 2.7 I had to remove the unicode conversion, otherwise the RDP server would not get the proper password. Interestingly your updated post about 512-byte padding and appending a ‘0’-character to obtain a 1329 ‘password 51’-hash did not work for me yet. Did you need the padding as a bugfix or did you suggest it merely as an imrovement to become fully compatible to the MS encoding format? (http://www.remkoweijnen.nl/blog/2008/03/02/how-rdp-passwords-are-encrypted-2/).

  2. Ok, just for the records: didn’t recall my code correctly: indeed I also apply unicode(password), just the padding did not work yet (spaces or charcter “0”? never mind..).

  3. Pingback: RemoteApp .rdp embed creds? - Admins Goodies

  4. Pingback: RemoteApp .rdp embed creds? – segmentfault