<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How rdp passwords are encrypted</title>
	<atom:link href="http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-rdp-passwords-are-encrypted</link>
	<description>About Terminal Server, Citrix, Delphi and other stuff</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:01:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Donkz</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-3/#comment-1577</link>
		<dc:creator>Donkz</dc:creator>
		<pubDate>Sat, 03 Jul 2010 17:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1577</guid>
		<description>Hi everybody,

With the help of all the information from over here and at Obviex, I&#039;ve managed to write my own &#039;login to Remote Desktop automatically from the command line&#039; utility, with some extra features. I wrote it for myself, but maybe other people will alsof find it useful. If anybody is interested, it can be found at http://www.donkz.nl/?p=58.</description>
		<content:encoded><![CDATA[<p>Hi everybody,</p>
<p>With the help of all the information from over here and at Obviex, I&#8217;ve managed to write my own &#8216;login to Remote Desktop automatically from the command line&#8217; utility, with some extra features. I wrote it for myself, but maybe other people will alsof find it useful. If anybody is interested, it can be found at <a href="http://www.donkz.nl/?p=58" rel="nofollow">http://www.donkz.nl/?p=58</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramish</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-3/#comment-1553</link>
		<dc:creator>pramish</dc:creator>
		<pubDate>Thu, 10 Jun 2010 22:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1553</guid>
		<description>can any1 mail me win32crypt.py or provide link for this file?
cant find module re while importing!!
mail me @ pramish_shrestha@hotmail.com
thanks</description>
		<content:encoded><![CDATA[<p>can any1 mail me win32crypt.py or provide link for this file?<br />
cant find module re while importing!!<br />
mail me @ <a href="mailto:pramish_shrestha@hotmail.com">pramish_shrestha@hotmail.com</a><br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1549</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 08 Jun 2010 10:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1549</guid>
		<description>this one is too good buddy, all good.thanks for that.</description>
		<content:encoded><![CDATA[<p>this one is too good buddy, all good.thanks for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1538</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 19 May 2010 06:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1538</guid>
		<description>asp wäre auch für uns interessant</description>
		<content:encoded><![CDATA[<p>asp wäre auch für uns interessant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DP</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1448</link>
		<dc:creator>DP</dc:creator>
		<pubDate>Sat, 17 Apr 2010 21:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1448</guid>
		<description>Is there a fix or workaround for RDP 6.0? The Hash tool does not seem to work.</description>
		<content:encoded><![CDATA[<p>Is there a fix or workaround for RDP 6.0? The Hash tool does not seem to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ankireddy</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1427</link>
		<dc:creator>ankireddy</dc:creator>
		<pubDate>Tue, 23 Mar 2010 06:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1427</guid>
		<description>Hi Every Body,

I am searching java based application for the same.

please help me..</description>
		<content:encoded><![CDATA[<p>Hi Every Body,</p>
<p>I am searching java based application for the same.</p>
<p>please help me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @JW</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1405</link>
		<dc:creator>@JW</dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1405</guid>
		<description>Hi,

I am using an intranet link to startup an RDP (stored on a network drive) using a batch file. I would like to start the RDP without creating it on the users desktop. 

I do not mind if the users know the password, I am just trying to eliminate the need for them to enter it when starting the RDP. 

Can I somehow use this solution to program the batch file to open the RDP and automatically add in the password for the specific user?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using an intranet link to startup an RDP (stored on a network drive) using a batch file. I would like to start the RDP without creating it on the users desktop. </p>
<p>I do not mind if the users know the password, I am just trying to eliminate the need for them to enter it when starting the RDP. </p>
<p>Can I somehow use this solution to program the batch file to open the RDP and automatically add in the password for the specific user?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1360</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 12 Jan 2010 09:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1360</guid>
		<description>Hello
I search for a ASP or PHP version of this code. I hope to build a web rdp-generator and use it with a form in an intranet. The password generation is the only piece that i miss.</description>
		<content:encoded><![CDATA[<p>Hello<br />
I search for a ASP or PHP version of this code. I hope to build a web rdp-generator and use it with a form in an intranet. The password generation is the only piece that i miss.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1334</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 15 Dec 2009 14:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1334</guid>
		<description>Hi

Im trying to do this in VB6, but Im not getting a valid result. Can someone tell me where I am going wrong.

Email me on thompsdc AT gmail DOT com

Here is the code I&#039;ve done...
---------------------------------------------------------------------
Option Explicit

Private Type DATA_BLOB
   cbData As Long
   pbData As Long
End Type

Private Declare Sub CopyMemory Lib &quot;kernel32&quot; Alias &quot;RtlMoveMemory&quot; ( _
            hpvDest As Any, _
            hpvSource As Any, _
            ByVal cbCopy As Long)
   
Private Declare Function CryptProtectData Lib &quot;crypt32.dll&quot; ( _
            ByRef pDataIn As DATA_BLOB, _
            ByVal szDataDescr As String, _
            ByRef pOptionalEntropy As Any, _
            ByRef pvReserved As Any, _
            ByRef pPromptStruct As Any, _
            ByVal dwFlags As Long, _
            ByRef pDataOut As DATA_BLOB) As Long

   
Public Function CryptRDPPassword(spPassword As String) As String
  Dim aDataIn() As Byte
  Dim udtDataIn As DATA_BLOB
  Dim r As Long
  Dim udtDataOut As DATA_BLOB
  Dim aDataOut() As Byte
  Dim s$, i&amp;
  
  
  aDataIn = StrConv(spPassword, vbUnicode)
  udtDataIn.cbData = UBound(aDataIn) + 1
  udtDataIn.pbData = VarPtr(aDataIn(0))
  
  &#039;StrConv(&quot;psw&quot;, vbUnicode),
  r = CryptProtectData(udtDataIn, _
                        &quot;psw&quot;, _
                        ByVal vbNullString, _
                        ByVal vbNullString, _
                        ByVal vbNullString, _
                        0, _
                        udtDataOut)
  
  If r Then
    ReDim Preserve aDataOut(udtDataOut.cbData)
    CopyMemory aDataOut(0), ByVal udtDataOut.pbData, udtDataOut.cbData
    
    s = &quot;&quot;
    For i = 0 To udtDataOut.cbData - 1
      s = s &amp; Format(Hex(aDataOut(i)), &quot;00&quot;)
    Next
    CryptRDPPassword = s
  Else
    CryptRDPPassword = &quot;Nothing&quot;
  End If
End Function</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Im trying to do this in VB6, but Im not getting a valid result. Can someone tell me where I am going wrong.</p>
<p>Email me on thompsdc AT gmail DOT com</p>
<p>Here is the code I&#8217;ve done&#8230;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Option Explicit</p>
<p>Private Type DATA_BLOB<br />
   cbData As Long<br />
   pbData As Long<br />
End Type</p>
<p>Private Declare Sub CopyMemory Lib &#8220;kernel32&#8243; Alias &#8220;RtlMoveMemory&#8221; ( _<br />
            hpvDest As Any, _<br />
            hpvSource As Any, _<br />
            ByVal cbCopy As Long)</p>
<p>Private Declare Function CryptProtectData Lib &#8220;crypt32.dll&#8221; ( _<br />
            ByRef pDataIn As DATA_BLOB, _<br />
            ByVal szDataDescr As String, _<br />
            ByRef pOptionalEntropy As Any, _<br />
            ByRef pvReserved As Any, _<br />
            ByRef pPromptStruct As Any, _<br />
            ByVal dwFlags As Long, _<br />
            ByRef pDataOut As DATA_BLOB) As Long</p>
<p>Public Function CryptRDPPassword(spPassword As String) As String<br />
  Dim aDataIn() As Byte<br />
  Dim udtDataIn As DATA_BLOB<br />
  Dim r As Long<br />
  Dim udtDataOut As DATA_BLOB<br />
  Dim aDataOut() As Byte<br />
  Dim s$, i&amp;</p>
<p>  aDataIn = StrConv(spPassword, vbUnicode)<br />
  udtDataIn.cbData = UBound(aDataIn) + 1<br />
  udtDataIn.pbData = VarPtr(aDataIn(0))</p>
<p>  &#8216;StrConv(&#8220;psw&#8221;, vbUnicode),<br />
  r = CryptProtectData(udtDataIn, _<br />
                        &#8220;psw&#8221;, _<br />
                        ByVal vbNullString, _<br />
                        ByVal vbNullString, _<br />
                        ByVal vbNullString, _<br />
                        0, _<br />
                        udtDataOut)</p>
<p>  If r Then<br />
    ReDim Preserve aDataOut(udtDataOut.cbData)<br />
    CopyMemory aDataOut(0), ByVal udtDataOut.pbData, udtDataOut.cbData</p>
<p>    s = &#8220;&#8221;<br />
    For i = 0 To udtDataOut.cbData &#8211; 1<br />
      s = s &amp; Format(Hex(aDataOut(i)), &#8220;00&#8243;)<br />
    Next<br />
    CryptRDPPassword = s<br />
  Else<br />
    CryptRDPPassword = &#8220;Nothing&#8221;<br />
  End If<br />
End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Como agregar la password a un archivo .rdp - GustavoG - Comunidad GrupoITPro</title>
		<link>http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-2/#comment-1176</link>
		<dc:creator>Como agregar la password a un archivo .rdp - GustavoG - Comunidad GrupoITPro</dc:creator>
		<pubDate>Mon, 10 Aug 2009 19:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/#comment-1176</guid>
		<description>[...] que esta encriptada. Para crear el String de password encriptado debemos usar una herramienta de Remko Weijnen La pueden bajar de aqu&#237;&#160; Remote Desktop Password Encryption &amp; Decryption Tool&#160; [...]</description>
		<content:encoded><![CDATA[<p>[...] que esta encriptada. Para crear el String de password encriptado debemos usar una herramienta de Remko Weijnen La pueden bajar de aqu&iacute;&nbsp; Remote Desktop Password Encryption &amp; Decryption Tool&nbsp; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
