<?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>any other information security business bog</title>
	<atom:link href="http://aob.kunis.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://aob.kunis.nl</link>
	<description>about pentesting, information security and other</description>
	<lastBuildDate>Sun, 28 Feb 2010 17:51:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>howto do a man-in-the middle attack with APR on RDP using Cain &amp; Abel</title>
		<link>http://aob.kunis.nl/2009/03/howto-do-a-man-in-the-middle-attack-with-apr-on-rdp-using-cain-abel/</link>
		<comments>http://aob.kunis.nl/2009/03/howto-do-a-man-in-the-middle-attack-with-apr-on-rdp-using-cain-abel/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 16:03:09 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[pentesting]]></category>
		<category><![CDATA[apr]]></category>
		<category><![CDATA[arp poisoning]]></category>
		<category><![CDATA[cain & abel]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[mitm]]></category>
		<category><![CDATA[rdp]]></category>

		<guid isPermaLink="false">http://aob.kunis.nl/?p=183</guid>
		<description><![CDATA[Method Warning: only try this on a network and on computers which you own or have permission to do this. In most countries it is illegal to do this on a network you do not own without permission of the owner. The RDP protocol prior to version 6 is vulnerable for man in the middle [...]]]></description>
			<content:encoded><![CDATA[<h2>Method</h2>
<p>Warning: only try this on a network and on computers which you own or have permission to do this. In most countries it is illegal to do this on a network you do not own without permission of the owner.</p>
<p>The RDP protocol prior to version 6 is vulnerable for man in the middle (mitm) attacks. A man in the middle attack can be done one several ways, for example with arp poisoning routing (APR), an eval twin access point, DNS spoofing. Today, we&#8217;ll choose APR. APR only works on the local subnet, so the attacker must be somewhere in between the victim and the RDP server. The RDP server can be a any Windows host with terminal services or remote control enabled. In most cases the attacker is on the same subnet as the victim.</p>
<p>More information about arp-spoofing can be found on the wikipedia:</p>
<p><a href="http://en.wikipedia.org/wiki/ARP_spoofing">http://en.wikipedia.org/wiki/ARP_spoofing</a></p>
<p><span id="more-183"></span></p>
<h2>Tooling</h2>
<p>Man in the middle attacks can be done by for example Ettercap, Dsniff, Yersina or Cain &amp; Abel. For this howto we&#8217;ll use the excellent password recovery tool called <a title="Cain &amp; Abel" href="http://www.oxid.it/cain.html" target="_blank">Cain &amp; Abel</a>.</p>
<p>Cain &amp; Abel combines can combines a middle attack and a RDP weakness: It splits up the encrypted channel between the rdp client and server. Then there are two encrypted channels, one between the client and the attacker, and one between the attacker and the server. Now we can sniff every keystroke between the victim and the rdp-server.</p>
<h2>The attack using arp poisoning routing and Cain &amp; Abel</h2>
<p>1) stop your anti-virus software because some anti-virus programs marks it as a unwanted software.</p>
<p>1) Start Cain &amp; Abel</p>
<p>2) Start the sniffer:</p>
<p><img class="alignnone size-full wp-image-195" title="cainabel-start-stop-sniffer" src="http://aob.kunis.nl/tmp/cainabel-start-stop-sniffer.png" alt="cainabel-start-stop-sniffer" width="853" height="613" /></p>
<p>3) select the &#8220;Sniffer&#8221; tab and select the big plus (add to list):</p>
<p><img class="alignnone size-full wp-image-199" title="cainabel-add-to-list" src="http://aob.kunis.nl/tmp/cainabel-add-to-list.png" alt="cainabel-add-to-list" width="853" height="613" /></p>
<p>4) a dialog window appear. Just select &#8220;Ok&#8221; to use the defaults:</p>
<p><img class="alignnone size-full wp-image-201" title="cainabel-mac-address-scanner" src="http://aob.kunis.nl/tmp/cainabel-mac-address-scanner.png" alt="cainabel-mac-address-scanner" width="250" height="408" /></p>
<p>Now Cain &amp; Abel looks likes this:</p>
<p><img class="alignnone size-full wp-image-204" title="cainabel-sniffer-overview" src="http://aob.kunis.nl/tmp/cainabel-sniffer-overview.png" alt="cainabel-sniffer-overview" width="853" height="613" /></p>
<p>Explanation:</p>
<p>192.168.2.1 is my Fritz!box 7170 router<br />
192.168.2.22 is the XP workstation of my kids.<br />
192.168.2.24 is my Linux Dreambox 7205 satellite reciever / nas / harddisk recorder<br />
192.168.2.27 is a Windows 2003 terminal server on VMWare. Settings: high security, but without using client certifactes.<br />
192.168.2.110 is  my Wii.</p>
<p>The plan is to do a ARP poisoning attack between when the Windows XP workstation (192.168.2.22) creates a RDP session to the Windows 2003 terminal server.</p>
<p>5) Now: use the APR tab click somewhere in the this area:</p>
<p><img class="alignnone size-full wp-image-206" title="cainabel-apr" src="http://aob.kunis.nl/tmp/cainabel-apr.png" alt="cainabel-apr" width="853" height="613" /></p>
<p>6) now press the bug plus (add to list). the following diaglog box will apear:</p>
<p><img class="alignnone size-full wp-image-208" title="cainabel-new-apr" src="http://aob.kunis.nl/tmp/cainabel-new-apr.png" alt="cainabel-new-apr" width="646" height="390" /></p>
<p>Now, select the two host which you want to sit in between. In this case we first choose the terminal server (192.68.2.27) and after that in the right pane the Windows XP workstation (192.168.2.22).</p>
<p>It is also possible to choose the default router (192.168.2.1 in my case) to do the attack on a terminal server which is located on another subnet.</p>
<p>7) After pressing &#8220;Ok&#8221;, you can start the apr poisoning routing attack with the APR button:</p>
<p><img class="alignnone size-full wp-image-209" title="cainabel-start-apr" src="http://aob.kunis.nl/tmp/cainabel-start-apr.png" alt="cainabel-start-apr" width="853" height="613" /></p>
<p>Now, the APR attack is running and we can wait till one of my kids  on the Windows XP workstation logins to the terminal server. Notice the Status &#8220;Poisoning&#8221;.</p>
<p> <img src='http://aob.kunis.nl/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> As soon as a RDP session is set-up, we see the session in our APR overview:</p>
<p><img class="alignnone size-full wp-image-212" title="cainabel-apr-rdp-screen" src="http://aob.kunis.nl/tmp/cainabel-apr-rdp-screen.png" alt="cainabel-apr-rdp-screen" width="1099" height="613" /></p>
<p>Note the details: RDP v4, high level encryption, a 128 bit key. Looks secure but&#8230;.</p>
<p>9) now, select the APR line and press the right mouse-button. A menu appears an choose &#8220;view&#8221;. A notepad window will open with the unencrypted log of the session.</p>
<p>This is my log:</p>
<p><a href="http://aob.kunis.nl/tmp/rdp-200938153120273.txt">rdp-200938153120273</a></p>
<p>Now search for the phrase &#8220;Key pressed client-side&#8221; to reveal the password:</p>
<p>Key pressed client-side: 0x1f &#8211; &#8216;s&#8217;<br />
Key pressed client-side: 0&#215;12 &#8211; &#8216;e&#8217;<br />
Key pressed client-side: 0x2e &#8211; &#8216;c&#8217;<br />
Key pressed client-side: 0&#215;13 &#8211; &#8216;r&#8217;<br />
Key pressed client-side: 0&#215;12 &#8211; &#8216;e&#8217;<br />
Key pressed client-side: 0&#215;14 &#8211; &#8216;t&#8217;</p>
<h2>countermeasures</h2>
<p>To prevent this attack, the only way is to implement a server certificate so the client can verify it is connected to the real server intead of the attacker. See this microsoft page:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc782610.aspx">http://technet.microsoft.com/en-us/library/cc782610.aspx</a></p>
<h2>references</h2>
<p><a href="http://www.oxid.it/ca_um/topics/apr-rdp.htm" target="_blank">The Cain &amp; Abel page about APR RDP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://aob.kunis.nl/2009/03/howto-do-a-man-in-the-middle-attack-with-apr-on-rdp-using-cain-abel/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Kismet / airodump using a Intel PRO/Wireless 4965</title>
		<link>http://aob.kunis.nl/2009/02/howto-start-kismet-using-a-intel-prowireless-4965/</link>
		<comments>http://aob.kunis.nl/2009/02/howto-start-kismet-using-a-intel-prowireless-4965/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 22:45:47 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[pentesting]]></category>
		<category><![CDATA[4966]]></category>
		<category><![CDATA[airodump-ng airmon-ng mon0]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[kismet]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://aob.kunis.nl/?p=121</guid>
		<description><![CDATA[&#60;&#60;&#60; Backtrack 4 pre-release is out now which has an newer version of Kismet. For BT 4 pre-final this page is not applicable &#62;&#62;&#62; Kismet The Intel PRO/Wireless 4965 wireless adapter, which is build-in in my laptop is now supported by Backtrack 4 using the iwlagn drivers. Warning: only use this tooling on a network [...]]]></description>
			<content:encoded><![CDATA[<h3>&lt;&lt;&lt; Backtrack 4 pre-release is out now which has an newer version of Kismet. For BT 4 pre-final this page is not applicable &gt;&gt;&gt;</h3>
<h3>Kismet</h3>
<p>The Intel PRO/Wireless 4965 wireless adapter, which is build-in in my laptop is now supported by Backtrack 4 using the iwlagn drivers.</p>
<p>Warning: only use this tooling on a network and on computers which you own or have permission to do this. In most countries it is illegal to use it on a network you do not own without permission of the owner.</p>
<p><span id="more-121"></span></p>
<p>The source-name for kismet is iwl4965, so you can start kismet using the following command:</p>
<pre><strong>kismet -c iwl4965,wlan0,wlan0</strong></pre>
<p>as an alternative you can edit the kismet.conf file and change the source parameter.</p>
<h3>airodump-ng</h3>
<p style="line-height: 14.25pt;"><span style="font-size: 10pt; color: black; font-family: &quot;Georgia&quot;,&quot;serif&quot;; mso-ansi-language: EN-US;" lang="EN-US">For airodump-ng it is necessary to first create a monitoring VAP interface:</span></p>
<pre style="line-height: 14.25pt;"><span style="font-size: 10pt; color: black; font-family: &quot;Georgia&quot;,&quot;serif&quot;; mso-ansi-language: EN-US;" lang="EN-US">airmon-ng wlan0</span></pre>
<p style="line-height: 14.25pt;"><span style="font-size: 10pt; color: black; font-family: &quot;Georgia&quot;,&quot;serif&quot;; mso-ansi-language: EN-US;" lang="EN-US">now, a mon0 interface is created, which can be used by airodump-ng:</span></p>
<pre style="line-height: 14.25pt;"><span style="font-size: 10pt; color: black; font-family: &quot;Georgia&quot;,&quot;serif&quot;; mso-ansi-language: EN-US;" lang="EN-US">airodump-ng mon0</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://aob.kunis.nl/2009/02/howto-start-kismet-using-a-intel-prowireless-4965/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

