<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Team Hack-a-Day &#187; Windows</title>
	<atom:link href="http://www.teamhackaday.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.teamhackaday.com</link>
	<description>The Official Site of the Unofficial Hack-a-Day Folding@Home Team</description>
	<lastBuildDate>Fri, 16 Jul 2010 13:45:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Recover/Gain Administrator Credentials in Windows</title>
		<link>http://www.teamhackaday.com/2010/04/19/recovergain-administrator-credentials-in-windows/</link>
		<comments>http://www.teamhackaday.com/2010/04/19/recovergain-administrator-credentials-in-windows/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 20:56:20 +0000</pubDate>
		<dc:creator>DrNathan</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[pwn]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.teamhackaday.com/?p=58</guid>
		<description><![CDATA[Forum member RaZ0R put together a little tutorial to demonstrate how one would gain Administrator privileges on a Windows machine from within a limited user account. In a few easy to understand steps, you can go from a limited account to power user in minutes.  This can be helpful if your administrator profile happens to [...]]]></description>
			<content:encoded><![CDATA[<p>Forum member <a href="http://teamhackaday.com/forum/memberlist.php?mode=viewprofile&amp;u=2879">RaZ0R</a> put<a href="http://teamhackaday.com/forum/viewtopic.php?f=3&amp;t=3384&amp;start=0"> together a little tutorial to demonstrate how one would gain Administrator privileges on a Windows machine from within a limited user account</a>.</p>
<p>In a few easy to understand steps, you can go from a limited account to power user in minutes.  This can be helpful if your administrator profile happens to be come corrupted, or if you just need to quickly get administrator access, for whatever reason.</p>
<p>Obviously, use this on computers that you own, on which you are permitted to have administrator access!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teamhackaday.com/2010/04/19/recovergain-administrator-credentials-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing Windows Remote Desktop with CopSSH</title>
		<link>http://www.teamhackaday.com/2008/04/23/securing-windows-remote-desktop-with-copssh/</link>
		<comments>http://www.teamhackaday.com/2008/04/23/securing-windows-remote-desktop-with-copssh/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 17:57:38 +0000</pubDate>
		<dc:creator>DrNathan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[CopSSH]]></category>
		<category><![CDATA[Putty]]></category>
		<category><![CDATA[Puttygen]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tunneling]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.teamhackaday.com/2008/04/23/securing-windows-remote-desktop-with-copssh/</guid>
		<description><![CDATA[I like having the ability to remotely access my PC at home while I am away in case I want to grab an important file I have left there, or if I need to finish something I didn’t quite get around to.  For ages I simply set port forwarding on my router allowing port 3389 [...]]]></description>
			<content:encoded><![CDATA[<p>I like having the ability to remotely access my PC at home while I am away in case I want to grab an important file I have left there, or if I need to finish something I didn’t quite get around to.  For ages I simply set port forwarding on my router allowing port 3389 to be directed to my desktop PC, which let me connect to my computer using Microsoft Remote Desktop Protocol (RDP).  While this was not the most secure method of doing so, it worked, and I did not want to change how I did things.That’s not to say that RDP is not secure – it does use 128 bit RC4 according to Microsoft.  However, with man-in-the-middle attacks being relatively easy to carry out, I thought there had to be a better (and more secure) way of connecting to my oh so precious home network.</p>
<p>In the end, I decided that I could route my RDP sessions through an SSH tunnel and sleep a little easier at night.  If you follow the directions below, you can too…<br />
<br/></p>
<h3>For those people using Windows 7, please <a href="http://drnathan.teamhackaday.com/2009/08/14/follow-up-securing-windows-remote-desktop-with-copssh/" target="_blank">read this information</a> before attempting to create a secure tunnel.</h3>
<p><br/></p>
<h4 style="text-align: center;"><a href="http://www.teamhackaday.com/forum/viewtopic.php?f=8&amp;t=2973">Download This Guide in PDF Format Here</a></h4>
<h3 style="text-align: center;"><span style="text-decoration: underline;">Installing CopSSH</span></h3>
<p>1)    Download <a href="http://www.itefix.no/phpws/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=12&amp;MMN_position=22:22">CopSSH</a>, <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty and Puttygen</a>.</p>
<p>2)    Execute the CopSSH installer, click <strong>Next</strong> to proceed, then click <strong>I agree</strong> to accept the license agreement.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/cop1.jpg" alt="CopSSH Screen 1" /></p>
<p><span id="more-20"></span></p>
<p>3)    Select the installation directory as shown below. <strong>Note:</strong> Unless you are running Windows XP 64-bit, you will install in the regular <strong>Program Files</strong> directory, rather than the <strong>Program Files (x86) </strong>directory as shown.  Click Install to proceed.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/cop2.jpg" alt="CopSSH Screen 2" /></p>
<p>4)    Once all of the files are copied and the service has been started, you will receive the following message stating that no users are enabled on the server.  This is a security precaution – you will need to manually activate each user who you wish to allow access via SSH.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/cop3.jpg" alt="CopSSH Screen 3" /></p>
<p>5)    To add a user, open the <strong>Start Menu</strong>, locate the CopSSH folder, and launch the<strong> Activate a User</strong> application.  Select the user you wish to activate from the drop down box shown.  Before you click <strong>Next</strong>, you can deselect the option to <strong>Create keys for public key authentication</strong> if you wish to generate the keys separately.  I will demonstrate how to generate keys separately, so deselect the box if you wish to follow along.</p>
<p><strong>Note: I used the computer Administrator account to provide an example.  I did not actually enable the built-in Administrator account to use SSH on my PC.</strong></p>
<p>6)    Upon clicking <strong>Next</strong>, you will receive a message stating that the selected user has been activated and can access the machine via SSH.</p>
<h3 style="text-align: center;"><span style="text-decoration: underline;">SSH Key Pair Generation</span></h3>
<p>1)    Start Puttygen, enter <strong>4096</strong> into the <strong>Number of bits in a generated key</strong> field, then click <strong>Generate</strong> to begin the key creation process.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/puttygen1.jpg" alt="Puttygen Screen 1" /></p>
<p>2)    Move the mouse as requested to add randomness to the key generation.  Once you have generated enough random movements, your key will be created.  Once the generation has finished, add a <strong>Key Comment</strong> if you wish, then enter a key passphrase two times as shown – the more complex, the better.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/puttygen2.jpg" alt="Puttygen Screen 2" /></p>
<p>3)    Highlight all of the text in the <strong>Public key for pasting into OpenSSH authorized_keys file</strong> box and paste the data into a text editor.  Save the file to the<br />
<strong>C:\Program Files\copssh\home\&lt;UserID&gt;\.ssh\</strong> folder, naming the file <strong>authorized_keys</strong> with no extension.</p>
<p>This naming is important unless you change the key file that CopSSH looks for in the SSHD configuration file.  For the Administrator account shown, you would save the file as<br />
<strong>C:\Program Files\copssh\home\Administrator\.ssh\authorized_keys. </strong></p>
<p><strong>Note:</strong> You cannot simply click the<strong> Save Public Key </strong>button to generate this file &#8211; CopSSH will not accept that file format as a key.  You must manually copy and paste the public key as noted above.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/puttygen3.jpg" alt="Puttygen Screen 3" /></p>
<p>4)    Now click <strong>Save Private Key</strong> and save the private key to a location that you will remember.  Close Puttygen.</p>
<h3 style="text-align: center;"><span style="text-decoration: underline;">Configuring CopSSH</span></h3>
<p>1)    Now, we are going to reconfigure CopSSH to use a port other than 22 for connectivity.  Changing the port number adds a bit of security through obfuscation to your SSH install – since port 22 is commonly used for SSH, changing the port in your installation makes it just a bit harder for someone to try hacking your computer via SSH.  To change this setting, we need to open the SSHD configuration file.  It is located at <strong>C:\Program Files\CopSSH\etc\sshd_config</strong> – you can open it in Wordpad or any text editor.  Notepad really is not the right tool for this job.</p>
<p>2)    In the file, the first value you can change is <strong>Port</strong>.  Change it to something that you will remember, uncomment the line by removing the pound sign at the beginning of the line, then save and close the file.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/sshd_config.jpg" alt="sshd_config" /></p>
<p>3)    The next values you want to change control how users can authenticate to the SSH server.  This is a detail that I missed in my first write-up that an astute reader noticed was overlooked.</p>
<p>This configuration change is very important as it disallows any user from authenticating to your SSH server without a key file.  If you do not change these values, users can connect to the server simply using their logon name and regular password.</p>
<p>You need to enable the <strong>PasswordAuthentication</strong> and <strong>PermitEmptyPasswords</strong> settings by removing the pound sign to uncomment the line, and assigning a value of <strong>“no”</strong> to both settings.</p>
<p><img class="aligncenter size-full wp-image-290" title="password" src="http://www.teamhackaday.com/wp-content/uploads/2008/04/password.jpg" alt="Set PasswordAuthentication and PermiteEmptyPasswords to no" width="648" height="361" /></p>
<p>4)    Now, restart the OpenSSHD service via Windows’ Services panel to allow the configuration changes to be applied.</p>
<p>5)    If you have a router with firewall capabilities installed, you should log on to the administration web page and forward the SSH port you just defined to the computer on which you installed CopSSH.  I will assume that you know what you are doing and let you take care of this on your own.</p>
<h3 style="text-align: center;"><span style="text-decoration: underline;">Configuring Putty</span></h3>
<p>Now we need to configure Putty to connect to our SSH server.  This is a pretty straightforward process that you should do on the remote computer from which you want to connect.</p>
<p>1)    Launch Putty.  Under <strong>Session</strong> settings, we will adjust 2 items:</p>
<p><strong>a) </strong> Set your <strong>Host Name or Host IP</strong> for connection.  I use DD-WRT on my router, and it supports DynDNS – so I just entered my DynDNS host name here.</p>
<p><strong>b) </strong> Set the <strong>Port</strong> number to reflect the port number you configured in the sshd_config file earlier.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty1.jpg" alt="Putty Screen 1" /></p>
<p>2)    Under <strong>Connection -&gt; Data</strong>, we will adjust one item:</p>
<p><strong>a) </strong> Set the <strong>Auto-login Username</strong> value to reflect the user you enabled on the SSH server</p>
<p><a title="Putty Screen 2" href="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty2.jpg"><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty2.jpg" alt="Putty Screen 2" /></a></p>
<p>3)    Under the main <strong>SSH</strong> section, we will adjust two items:</p>
<p><strong>a) </strong> Check the <strong>Enable Compression</strong> box under <strong>Protocol Options</strong> section</p>
<p><strong>b) </strong> Select <strong>2 only</strong> under the <strong>Preferred SSH protocol version</strong> section</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty3.jpg" alt="Putty Screen 3" /></p>
<p>4)    Expand the <strong>SSH</strong> section and select <strong>Auth</strong>.  In this section, we will set the <strong>Private key file for authentication</strong> to the location of the <strong>private key</strong> you created earlier.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty4.jpg" alt="Putty Screen 4" /></p>
<p>5)    Under the<strong> Tunnels </strong>section of the <strong>SSH</strong> section, we will establish the tunneling settings for your remote desktop sessions.  This where the real work gets done.</p>
<p>You must create an entry for each computer you want to connect to at the other end of the SSH tunnel.  To do this, you will need RDP enabled on the target computer, as well as the host name of the target computer.  Once you have entered the proper values, click <strong>Add</strong> to add the port forwarding to the configuration.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty5.jpg" alt="Putty Screen 5" /></p>
<p>In the previous picture, you should note two things:</p>
<p><strong>a) </strong> The <strong>Source port</strong> refers to the port you are connecting to on your local computer, i.e. the port that Putty will listen to for connections while you have the SSH tunnel established.  I usually set this to 3390 for the first host I want to RDP to, and then count up from there.</p>
<p><strong>b) </strong> In the <strong>Destination</strong> section, you will need to enter the name of the remote host you want to connect to, followed by a colon, then the RDP port number.  For hosts using the default Windows RDP configuration, this is always 3389.  If you have changed this value, adjust as necessary.</p>
<p>You can pretty much add as many hosts as you can keep straight in your head:</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty6.jpg" alt="Putty Screen 6" /></p>
<p>5)    Finally, return to the main <strong>Sessions</strong> section of Putty and give the configured session a name as seen below.  Click <strong>Save</strong> to save your configuration – it will then appear in the list of saved session configurations.</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/putty7.jpg" alt="Putty Screen 7" /></p>
<p>6)    Finally, when you want to RDP into your remote computer, you can launch the Putty console to establish the connection, or you can simply run <strong>“putty.exe –load &lt;session name here&gt;”</strong> from the command line to launch Putty and connect to your remote host.  For example, I would type <strong>“putty.exe –load Home Network”</strong> if I wanted to launch this particular connection.</p>
<p>7)    After you authenticate using the passphrase you created earlier, you can simply RDP into your remote computer by connecting to <strong>localhost:3390</strong> from the Remote Desktop Connection application as shown below:</p>
<p><img src="http://www.teamhackaday.com/wp-content/uploads/2008/04/rdp.jpg" alt="RDP" /></p>
<p><strong>Note: </strong>You can always test SSH connectivity locally by replacing your SSH host’s IP address with <strong>localhost</strong> and launching Putty.  In fact, I recommend you do this to ensure that your key pair is working properly before you attempt to connect remotely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teamhackaday.com/2008/04/23/securing-windows-remote-desktop-with-copssh/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>
