About Terminal Server, Citrix, Delphi and other stuff
Dirk Schmitz send me his Python version of encrypting the RDP Password:
pwdHash = win32crypt.CryptProtectData(u"MYPASSWORD",u‘psw’,None,None,None,0)
print binascii.hexlify(pwdHash)
Read the original article here: http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/
Related posts:
Active Directory Altiris bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux MSI MySQL Navigation Objects Office Outlook Passat PowerPoint PowerShell referall was returned RNS315 RNS510 SasLibEx script slow Terminal Server ThinApp TSAdmin TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE WLAN Wordpress WTSWaitSystemEvent wts_event_flush
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
3 Responses for "Encrypt RDP password in Python"
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/).
@Arvid: to become fully compliant, it works either way
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..).
Leave a reply