<?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> &#187; MITM</title>
	<atom:link href="http://www.megapanzer.com/tag/mitm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.megapanzer.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Dec 2011 13:02:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Todos for this week &#8230;</title>
		<link>http://www.megapanzer.com/2010/12/06/todos-for-this-week/</link>
		<comments>http://www.megapanzer.com/2010/12/06/todos-for-this-week/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 09:32:05 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[Pcap]]></category>
		<category><![CDATA[Santa Claus]]></category>
		<category><![CDATA[Sniffer]]></category>
		<category><![CDATA[WinPcap]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=4917</guid>
		<description><![CDATA[G&#8217;morning. I&#8217;ll spend my time this week on a new tool for MITM attack on HTTP layer. This asks for (Win)Pcap skills which I still don&#8217;t really posses even after some days of black belt ninja Pcap-Training. Maybe the basics to build a sniffer and parse the packet data are there but it&#8217;s not enough [...]]]></description>
			<content:encoded><![CDATA[<glossarycode><p><img src="http://www.megapanzer.com/wp-content/uploads/monkeystealspeach-216x300.jpg" alt="" title="The monkey steals the peach" width="216" height="300" class="alignright size-medium wp-image-4916" />G&#8217;morning.</p>
<p>I&#8217;ll spend my time this week on a new tool for <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1430" title="Glossary: MITM" target="_blank">MITM</a> attack on HTTP layer. This asks for (Win)Pcap skills which I still don&#8217;t really posses even after some days of black belt ninja Pcap-Training. Maybe the basics to build a sniffer and parse the packet data are there  but it&#8217;s not enough yet to digg deeper.</p>
<p>And to conclude this post &#8230; In case you havn&#8217;t notice : today is the 6. December. As an advice from a traumatised, santa damaged adult :<br />
If you see this guy wandering around don&#8217;t hesitate. Steal his peach!</p>
<p>Have a good week &#8230;</p></glossarycode>]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2010/12/06/todos-for-this-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenProxy PERL script</title>
		<link>http://www.megapanzer.com/2010/10/13/openproxy-perl-script/</link>
		<comments>http://www.megapanzer.com/2010/10/13/openproxy-perl-script/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 12:04:23 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Coders corner]]></category>
		<category><![CDATA[Tools & sources]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[OpenProxy]]></category>
		<category><![CDATA[PERL]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=4280</guid>
		<description><![CDATA[Tool name : OpenProxy &#160; Description : OpenProxy is a small PERL HTTP proxy server script. It listens on the well known proxy ports and waits for incoming requests. The idea behind this script is to filter out the interesting traffic like HTTP/FTP authentication data and eavesdrop connections where the HTTP proxy is used for [...]]]></description>
			<content:encoded><![CDATA[<table border="0" width="100%">
<tbody>
<tr valign="top">
<td width="30%"></td>
<td width="70%"></td>
</tr>
<tr valign="top">
<td><strong>Tool name</strong> :</td>
<td>OpenProxy<img src="http://www.megapanzer.com/wp-content/uploads/App-150x150.jpg" alt="" title="App" width="75" height="75" class="alignright size-thumbnail wp-image-3567" /></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td><strong>Description</strong> :</td>
<td><strong>OpenProxy </strong>is a small PERL HTTP proxy server script. It listens on the well known proxy ports and waits for incoming requests. The idea behind this script is to filter out the interesting traffic like HTTP/FTP authentication data and eavesdrop connections where the HTTP proxy is used for cloaking purpose (IRC).
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td><strong>Tested on</strong> :</td>
<td>Linux/PERL v5.8.8</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td><strong>Feedback</strong> :</td>
<td>In case you encounter any problems with the tool, you have suggestions to improve it, or you tested it with a Windows version i&#8217;ve not yet tested please drop me an <a href="http://www.megapanzer.com/contact/">email</a>.</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td><strong>Downloads</strong> :</td>
<td>Version 0.1 &#8211; <a href="http://www.megapanzer.com/wp-content/uploads/OpenProxy.txt">Source</a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2010/10/13/openproxy-perl-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The man in the middle</title>
		<link>http://www.megapanzer.com/2010/08/28/the-man-in-the-middle/</link>
		<comments>http://www.megapanzer.com/2010/08/28/the-man-in-the-middle/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 19:28:03 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[Open Proxy]]></category>
		<category><![CDATA[Proxy]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=3804</guid>
		<description><![CDATA[The last weeks I was tinkering around on an old HTTP proxy skript I wrote about one year ago. This script doesn&#8217;t contain any rocket science skills and you have the same or probably even more functionality with any other HTTP proxy. Implementing the server in PERL allows me to extend, modify and adjust it [...]]]></description>
			<content:encoded><![CDATA[<p>The last weeks I was tinkering around on an old HTTP proxy skript I wrote about one year ago. This script doesn&#8217;t contain any rocket science skills and you have the same or probably even more functionality with any other HTTP proxy. Implementing the server in PERL allows me to extend, modify and adjust it according the required needs. I wanted to analyse the traffic caused by people who want to be anonymised and are sitting behind an identity obscuring proxy server, to find out what they are (bots, scripts, humans), what they do and why they want to obscure their identity.<br />
In this post you find an <strong>houerly updated statistic</strong> from the data collected during two days and some addintional info about what this statistic wants to tell us.<br />
<br/><br />
<br/></p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td width=200><strong>Generated on </strong></td>
<td colspan=2>October 13 2010 13:11:26</td>
</tr>
</table>
<p>
<table border=0 width=460>
<tr>
<td width=200><strong>Total requests</strong></td>
<td colspan=2>1115784</td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
</tr>
<tr>
<td><strong>Proxy port</strong></td>
<td><strong>Total requests</strong></td>
</tr>
<tr>
<td width=60>8000</td>
<td>277183</td>
</tr>
<tr>
<td width=60>8080</td>
<td>265029</td>
</tr>
<tr>
<td width=60>3128</td>
<td>573559</td>
</tr>
</table></div>
<p> <br />
    <strong>Basic HTTP authentication</strong> </p>
<div style="max-width: 470px;">
About 90% of the clients using the Basic HTTP method try to authenticate on servers with pornographic content. And most of these authentication requests belong to a login hacking attack and don&#8217;t contain valid user credentials.<br /> <br />
Among all these login hack requests we find also successful login attemps. Mostly these authentication requests were typed in by humans and not by scripts and they didn&#8217;t authenticate on a porn server. If we filter out all these login hacking attempts we get a hand full of valid user accounts.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>URL</strong></td>
</tr>
<tr>
<td width=60>1570</td>
<td>www.fetishliza.com</td>
</tr>
<tr>
<td width=60>1478</td>
<td>members.teamskeet.com</td>
</tr>
<tr>
<td width=60>1116</td>
<td>www.southern-charms3.com</td>
</tr>
<tr>
<td width=60>611</td>
<td>sexstationtv.com</td>
</tr>
<tr>
<td width=60>516</td>
<td>members.korny.adultbouncer.com</td>
</tr>
<tr>
<td width=60>509</td>
<td>southeastsoles.com</td>
</tr>
<tr>
<td width=60>449</td>
<td>nudesandnature.com</td>
</tr>
<tr>
<td width=60>449</td>
<td>strapon-hell.com</td>
</tr>
<tr>
<td width=60>388</td>
<td>www.humiliatrix.com</td>
</tr>
<tr>
<td width=60>339</td>
<td>www.young-goddess.com</td>
</tr>
<tr>
<td width=60>239</td>
<td>members.glamour.cz</td>
</tr>
</table></div>
<p> <br />
    <strong>HTML GET authentication</strong> </p>
<div style="max-width: 470px;">
With the GET login requests we encounter a similar situation as with the Basic HTTP authentication. Most of the requests belong to login hacking attempts. Many of these attempts are executed on yahoo servers as they probably don&#8217;t identify automated login atempts as Google does. If you browse through the logs and ignore the sites with more than 2 or 3 requests chances are good you find valid requests typed by a humans.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>URL</strong></td>
</tr>
<tr>
<td width=60>928</td>
<td>195.122.131.36</td>
</tr>
<tr>
<td width=60>178</td>
<td>one-cpm.fr.nf</td>
</tr>
<tr>
<td width=60>169</td>
<td>195.122.131.24</td>
</tr>
<tr>
<td width=60>158</td>
<td>n4.login.re3.yahoo.com</td>
</tr>
<tr>
<td width=60>132</td>
<td>login.korea.yahoo.com</td>
</tr>
<tr>
<td width=60>117</td>
<td>195.122.131.30</td>
</tr>
<tr>
<td width=60>102</td>
<td>l10.member.sp1.yahoo.com</td>
</tr>
<tr>
<td width=60>101</td>
<td>login.india.yahoo.com</td>
</tr>
<tr>
<td width=60>99</td>
<td>login.vip.kr3.yahoo.com</td>
</tr>
<tr>
<td width=60>97</td>
<td>l16.member.sg1.yahoo.com</td>
</tr>
<tr>
<td width=60>96</td>
<td>l09.member.tw1.yahoo.com</td>
</tr>
</table></div>
<p> <br />
    <strong>HTML POST authentication</strong> </p>
<div style="max-width: 470px;">
The POST requests don&#8217;t really differ from the GET login requests. Ignore the sites with many login atempts and focus on the others with only a few requests. Also here you will probably stumble on valid user account data.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>URL</strong></td>
</tr>
<tr>
<td width=60>2312</td>
<td>209.222.7.232</td>
</tr>
<tr>
<td width=60>1087</td>
<td>174.140.154.23</td>
</tr>
<tr>
<td width=60>718</td>
<td>209.222.7.235</td>
</tr>
<tr>
<td width=60>580</td>
<td>hotfile.com</td>
</tr>
<tr>
<td width=60>522</td>
<td>megaporn.com</td>
</tr>
<tr>
<td width=60>496</td>
<td>79.143.184.247</td>
</tr>
<tr>
<td width=60>372</td>
<td>209.222.148.141</td>
</tr>
<tr>
<td width=60>327</td>
<td>174.140.154.12</td>
</tr>
<tr>
<td width=60>165</td>
<td>174.140.154.18</td>
</tr>
<tr>
<td width=60>147</td>
<td>174.140.154.14</td>
</tr>
<tr>
<td width=60>106</td>
<td>m.upcoming.yahoo.com</td>
</tr>
</table></div>
<p> <br />
    <strong>Most active clients</strong> </p>
<div style="max-width: 470px;">
We have not yet linked the clients to the servers or URLs and a reverse lookup of a client is mostly not possible. With help of a WhoIs lookup we can at least find out the clients country code and determine which countries have the most actives clients.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>URL (Country code)</strong></td>
</tr>
<tr>
<td width=60>13228</td>
<td>216.245.196.122 (US)</td>
</tr>
<tr>
<td width=60>9507</td>
<td>109.87.45.228 ()</td>
</tr>
<tr>
<td width=60>8791</td>
<td>109.86.246.136 ()</td>
</tr>
<tr>
<td width=60>8349</td>
<td>208.115.219.10 (US)</td>
</tr>
<tr>
<td width=60>8278</td>
<td>74.63.192.66 (US)</td>
</tr>
<tr>
<td width=60>6032</td>
<td>173.203.240.43 ()</td>
</tr>
<tr>
<td width=60>5924</td>
<td>81.24.89.14 (ru)</td>
</tr>
<tr>
<td width=60>4247</td>
<td>89.250.157.196 (RU)</td>
</tr>
<tr>
<td width=60>3887</td>
<td>221.233.192.72 (CN)</td>
</tr>
<tr>
<td width=60>3783</td>
<td>86.62.248.210 (qa)</td>
</tr>
<tr>
<td width=60>3582</td>
<td>91.207.6.26 (UA)</td>
</tr>
</table></div>
<p> <br />
    <strong>Most requested servers</strong> </p>
<div style="max-width: 470px;">
Looking at the servers hostname we can estimate what function a server may has. Considering our top 10 list it is not the typical stuff like mail or news people want to get while sitting behind a anonymising proxy. Instead advertisement seems to be the main reason using an HTTP proxy. You can see as well that Google  even behind a proxy is a popular server. But after evaluating the passed search strings the users rather want to check if the proxy server works properly instead of searching stuff on the net. And the wired search strings tell us that the requests were executed automatically by a script and not by humans.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>URL</strong></td>
</tr>
<tr>
<td width=60>22276</td>
<td>login.icq.com</td>
</tr>
<tr>
<td width=60>17425</td>
<td><a href="http://www.google.com" target=_blank</a>www.google.com</a></td>
</tr>
<tr>
<td width=60>16060</td>
<td>ad.yieldmanager.com</td>
</tr>
<tr>
<td width=60>14892</td>
<td>content.yieldmanager.com</td>
</tr>
<tr>
<td width=60>10282</td>
<td>ad.reduxmedia.com</td>
</tr>
<tr>
<td width=60>3078</td>
<td><a href="http://home.uasar.org.ua" target=_blank</a>home.uasar.org.ua</a></td>
</tr>
<tr>
<td width=60>2835</td>
<td>ak1.abmr.net</td>
</tr>
<tr>
<td width=60>2220</td>
<td>ad.xtendmedia.com</td>
</tr>
<tr>
<td width=60>2176</td>
<td><a href="http://www.adparlor.com" target=_blank</a>www.adparlor.com</a></td>
</tr>
<tr>
<td width=60>1995</td>
<td>ad.spot200.com</td>
</tr>
<tr>
<td width=60>1972</td>
<td><a href="http://www.besthitsnow.com" target=_blank</a>www.besthitsnow.com</a></td>
</tr>
</table></div>
<p> <br />
    <strong>Most requested URLs by a system</strong> </p>
<div style="max-width: 470px;">
When this page was created the most requested URLs were WebBugs, login hack attempts and mainly URLs to ad-servers containing either banners or javascript code that requests banners. The big picture gets clearer and we see that advertisers seem to appreciate the obscuring services of anonymising proxy servers.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<tr>
<td><strong>Requests</strong></td>
<td><strong>URL</strong></td>
</tr>
<tr>
<td width=60>22276</td>
<td>http://login.icq.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>11911</td>
<td><a href="http://content.yieldmanager.com/ak/q.gif" target=_blank>http://content.yieldmanager.com/ak/q.gif &#8230;</a></td>
</tr>
<tr>
<td width=60>1901</td>
<td>http://snandart.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>1836</td>
<td>http://proxylist.co:443 &#8230;</td>
</tr>
<tr>
<td width=60>1509</td>
<td><a href="http://www.google.com/intl/de/ads/" target=_blank>http://www.google.com/intl/de/ads/ &#8230;</a></td>
</tr>
<tr>
<td width=60>1476</td>
<td><a href="http://members.teamskeet.com/" target=_blank>http://members.teamskeet.com/ &#8230;</a></td>
</tr>
<tr>
<td width=60>1363</td>
<td><a href="http://www.google.de/about.html" target=_blank>http://www.google.de/about.html &#8230;</a></td>
</tr>
<tr>
<td width=60>1297</td>
<td>http://botmasternet.com/proxy/http/engine.php &#8230;</td>
</tr>
<tr>
<td width=60>1286</td>
<td><a href="http://www.google.com/accounts/TOS?loc=DE" target=_blank>http://www.google.com/accounts/TOS?loc=DE &#8230;</a></td>
</tr>
<tr>
<td width=60>1185</td>
<td>http://www.google.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>910</td>
<td><a href="http://flashsexclips.com/proxy5/check.php" target=_blank>http://flashsexclips.com/proxy5/check.php &#8230;</a></td>
</tr>
</table></div>
<p> <br />
    <strong>Most comunicating systems</strong> </p>
<p> </p>
<div style="max-width: 470px;">
This overview shows which system likes which server and how often a request was sent from one to the other. The eye-catching thing here is that the source address is mostly located in China or in the USA and the requested server hosts advertisement&#8230; images, banners, scripts, etc.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>Source</strong></td>
<td><strong>Destination</strong></td>
</tr>
<tr>
<td width=60>5924</td>
<td>81.24.89.14</td>
<td>login.icq.com</td>
</tr>
<tr>
<td width=60>4247</td>
<td>89.250.157.196</td>
<td>login.icq.com</td>
</tr>
<tr>
<td width=60>3783</td>
<td>86.62.248.210</td>
<td>login.icq.com</td>
</tr>
<tr>
<td width=60>3478</td>
<td>81.4.136.2</td>
<td>login.icq.com</td>
</tr>
<tr>
<td width=60>3474</td>
<td>216.245.196.122</td>
<td>content.yieldmanager.com</td>
</tr>
<tr>
<td width=60>3078</td>
<td>93.126.101.119</td>
<td><a href="http://home.uasar.org.ua" target=_blank>home.uasar.org.ua</a></td>
</tr>
<tr>
<td width=60>3026</td>
<td>204.124.183.90</td>
<td><a href="http://www.google.com" target=_blank>www.google.com</a></td>
</tr>
<tr>
<td width=60>2917</td>
<td>216.245.196.122</td>
<td>ad.yieldmanager.com</td>
</tr>
<tr>
<td width=60>2726</td>
<td>62.228.153.82</td>
<td>login.icq.com</td>
</tr>
<tr>
<td width=60>2705</td>
<td>173.236.70.187</td>
<td><a href="http://www.google.com" target=_blank>www.google.com</a></td>
</tr>
<tr>
<td width=60>2636</td>
<td>74.63.192.66</td>
<td>ad.reduxmedia.com</td>
</tr>
</table></div>
<p> <br />
    <strong>Most called URLs by a system</strong> </p>
<div style="max-width: 470px;">
This overview shows which system likes which URL and how often a URL on a specific server was requested by a particular client system. The situation here is the same as in the paragraph above. The client sits somewhere in the USA or China and the destination server is involved in advertisement.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td colspan=3>&nbsp;</td>
</tr>
<tr>
<td><strong>Requests</strong></td>
<td><strong>Source</strong></td>
<td><strong>URL</strong></td>
</tr>
<tr>
<td width=60>5924</td>
<td>81.24.89.14</td>
<td>http://login.icq.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>4247</td>
<td>89.250.157.196</td>
<td>http://login.icq.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>3783</td>
<td>86.62.248.210</td>
<td>http://login.icq.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>3478</td>
<td>81.4.136.2</td>
<td>http://login.icq.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>2726</td>
<td>62.228.153.82</td>
<td>http://login.icq.com:443 &#8230;</td>
</tr>
<tr>
<td width=60>2672</td>
<td>216.245.196.122</td>
<td><a href="http://content.yieldmanager.com/ak/q.gif" target=_blank>http://content.yieldmanager.com/ak/q.gif &#8230;</a></td>
</tr>
<tr>
<td width=60>1836</td>
<td>173.234.51.29</td>
<td>http://proxylist.co:443 &#8230;</td>
</tr>
<tr>
<td width=60>1568</td>
<td>74.63.192.66</td>
<td><a href="http://content.yieldmanager.com/ak/q.gif" target=_blank>http://content.yieldmanager.com/ak/q.gif &#8230;</a></td>
</tr>
<tr>
<td width=60>1509</td>
<td>208.115.219.10</td>
<td><a href="http://content.yieldmanager.com/ak/q.gif" target=_blank>http://content.yieldmanager.com/ak/q.gif &#8230;</a></td>
</tr>
<tr>
<td width=60>1476</td>
<td>187.132.45.238</td>
<td><a href="http://members.teamskeet.com/" target=_blank>http://members.teamskeet.com/ &#8230;</a></td>
</tr>
<tr>
<td width=60>1238</td>
<td>84.19.161.108</td>
<td>http://snandart.com:443 &#8230;</td>
</tr>
</table></div>
<p>    <strong>Most called destination ports</strong> </p>
<div style="max-width: 470px;">
As the proxy server supports the CONNECT method clients are <strong>allowed to establish a TCP connection to any port</strong>. CONNECT is normally used to tunnel HTTPS through a proxy server. Spamers like to use it to SMTP servers and people + <strong>bots like this method to connect to IRC servers</strong>. This is the reason why beside port 80 and 443 also other, sometimes rather exocit ports, are listed.
</div>
<p> </p>
<div style="max-width: 470px; border: 2px solid #dddddd; padding: 20px;">
<table border=0 width=460>
<tr>
<td><strong>Requests</strong></td>
<td><strong>Dest. port</strong></td>
</tr>
<tr>
<td width=60>1072189</td>
<td>80 (www)</td>
</tr>
<tr>
<td width=60>39426</td>
<td>443 (https)</td>
</tr>
<tr>
<td width=60>2730</td>
<td>25 (smtp)</td>
</tr>
<tr>
<td width=60>485</td>
<td>6667 (ircd)</td>
</tr>
<tr>
<td width=60>153</td>
<td>6112 (starcraft)</td>
</tr>
<tr>
<td width=60>123</td>
<td>6668 (ircd)</td>
</tr>
<tr>
<td width=60>120</td>
<td>6666 (ircd)</td>
</tr>
<tr>
<td width=60>83</td>
<td>7000 (afs3-fileserver)</td>
</tr>
<tr>
<td width=60>70</td>
<td>8080 (webcache)</td>
</tr>
<tr>
<td width=60>58</td>
<td>33033 ()</td>
</tr>
<tr>
<td width=60>48</td>
<td>81 ()</td>
</tr>
<tr>
<td width=60>43</td>
<td>6669 (ircd)</td>
</tr>
<tr>
<td width=60>29</td>
<td>6665 (ircd)</td>
</tr>
<tr>
<td width=60>22</td>
<td>8018 ()</td>
</tr>
<tr>
<td width=60>16</td>
<td>12350 ()</td>
</tr>
<tr>
<td width=60>15</td>
<td>2866 ()</td>
</tr>
</table></div>
<p> <br />
<strong>The bottom line</strong> </p>
<div style="max-width: 470px;">
At the beginning I thought it would be easy fishing user accounts out of the data streams. But after some tests I noticed that the major part of the traffic was automated and related to advertisement in one or another way. There is not much sensitive data to catch. In a second step I tried to redirect all the clients to the Megapanzer web page to see how the traffic load changes and if some users will start browsing the page. But also this Plan didn&#8217;t work out as expected.<br /> <br />
So obviously humans don&#8217;t like to use HTTP proxys which they have to configure somewhere in the browser properties. Either it is to complicated or there is an easier way to use a proxy as web proxies for example. You can find real user traffic but in a very low quantity. Also the Automated traffic originates often from login hacking scripts. A proxy suppressing the clients real identity makes the the attackers feel safer. <br /> <br />
The heavy users are the advertisers. They are responsible for the major part of the requests passing the proxy and that sometimes let my inet link collapse. But for what reason actually? Why don&#8217;t they connect directly to the destination servers so they don&#8217;t rely on an instable and unreliable node in between? After pondering for a while and searching for a plausible answer the only reason I can imagine is to keep the click rate on their advertisements higher than it really is. An advertiser like xapads.com or defaultimg.com can ensure their customers a high amount of clicks and views per day what makes them as an advertisement partner more valuable. Or the customers pay these ads companies according the &#8220;Costs per impression&#8221; model. Then the clicks are generated by scripts running somewhere on a server in China or in the USA. For example if you have a list containing 1000 proxy servers and your customers pay you $20 CPM, the advertiser &#8220;could&#8221; earn this money in one day. 20$ * 30 makes 600$ a month. Serving ten customers for 30 days makes a nice amount at the end of the month.<br />
But this is only an assumption. Any better ideas? Suggestions?</p>
</div>
<p> </p>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2010/08/28/the-man-in-the-middle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defeating SSL using SSLStrip</title>
		<link>http://www.megapanzer.com/2009/08/11/defeating-ssl-using-sslstrip/</link>
		<comments>http://www.megapanzer.com/2009/08/11/defeating-ssl-using-sslstrip/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 11:32:45 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[External tools]]></category>
		<category><![CDATA[Tools & sources]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=2583</guid>
		<description><![CDATA[At BlackHat DC 2009 Moxie Marlinspike demonstrated how to subvert HTTPS with SSLStrip. SSLStrip intercepts HTTP traffic, watches for HTTPS links inside the data stream and maps these HTTPS links to HTTP. Whenever a victim clicks on such a mapped HTTPS link SSLStrip will notice it and act as a HTTP2HTTPS proxy server. All the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.megapanzer.com/wp-content/uploads/locks_logo-150x150.jpg" alt="locks_logo.jpg" title="locks_logo.jpg" width="75" height="75" class="alignright size-thumbnail wp-image-1041" />At BlackHat DC 2009 Moxie Marlinspike demonstrated how to subvert HTTPS with SSLStrip. SSLStrip intercepts HTTP traffic, watches for HTTPS links inside the data stream and maps these HTTPS links to HTTP. Whenever a victim clicks on such a mapped HTTPS link SSLStrip will notice it and act as a HTTP2HTTPS proxy server. All the data is available in cleartext to SSLStrip and an attacker can use this circumstance to his advantage.<br />
<span id="more-2583"></span><br />
<br />
If I find the time I will port the SSLStrip features to PERL to merge it with the HTTP proxy script I wrote to observe spam and anonymized traffic.<br />
<br />
Here is the <a href="http://www.megapanzer.com/wp-content/uploads/sslstrip-0.4.tar.gz">SSLStrip 0.4</a> packet from the local archive on Megapanzer.</p>
<p>This is the link to <a href="http://www.thoughtcrime.org/software/sslstrip" target="_blank">Moxie&#8217;s page</a>.</p>
<p>See SSLStrip in action here :<br />
<br />
<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3970303&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3970303&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/3970303"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2009/08/11/defeating-ssl-using-sslstrip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nine ways how hackers propagate malware (2 of 2)</title>
		<link>http://www.megapanzer.com/2009/05/06/nine_ways_how_hackers_propagate_malware_one/</link>
		<comments>http://www.megapanzer.com/2009/05/06/nine_ways_how_hackers_propagate_malware_one/#comments</comments>
		<pubDate>Wed, 06 May 2009 23:44:05 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Injection]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[Proxy server]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=942</guid>
		<description><![CDATA[In the first part of this series I wrote about the different ways how attackers propagate malware by sending an infectious executable file or an USB memory stick to their victims or let them pick up an infected file in a file sharing network like emule or bittorrent. In this article, as promised in the [...]]]></description>
			<content:encoded><![CDATA[<glossarycode><glossarycode><glossarycode><glossarycode><glossarycode><glossarycode><p><img src="http://www.megapanzer.com/wp-content/uploads/injection-150x150.jpg" alt="injection" title="injection" width="150" height="150" class="alignright size-thumbnail wp-image-1728" />In the <a href="http://www.megapanzer.com/2009/03/24/nine_ways_how_hackers_propagate_malware_one-2/">first part</a> of this series I wrote about the different ways how attackers propagate <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1210" title="Glossary: Malware" target="_blank">malware</a> by sending an infectious executable file or an USB memory stick to their victims or let them pick up an infected file in a file sharing network like emule or bittorrent.<br />
In this article, as promised in the first part,  I want to explain how to propagate and inject <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1210" title="Glossary: Malware" target="_blank">malware</a> by taking over a victims data stream.<br />
<span id="more-942"></span><br />
There are two ways how to take over a data stream. From the inside of the victims network (LAN) or from the outside (the Internet). Both of these tactics have their advantages, disadvantages and methods how to proceed which I will explain in the following paragraphs. I wont go too deep into details and technical aspects. Otherwise I had to split this article again in a second and a third part because it would blow it up overly. I will explain the technical aspects in an other article independent from this series and will add example tools and source code where possible.</p>
<p><strong>Attacking the victims home LAN</strong></p>
<p>Beside the fact that home Internet routers are generally weaker protected than corporate Internet access appliances one of the weak links in home routers is often the integrated wireless access point. Sometimes the Internet routers are delivered with the WLAN module activated and only protected by the default settings. Other times the owner activates the WLAN himself and chooses an insecure password or an insecure protection standard like <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1319" title="Glossary: WEP" target="_blank">WEP</a> or nowadays also <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1322" title="Glossary: WPA" target="_blank">WPA</a> has its weakness. If one of these preconditions is the case chances are good an attacker will overcome the protection mechanisms. Once he is connected with the victims local network over the WLAN several not too complicated scenarios exists to take over the data stream.</p>
<p><strong>Method 5 : Taking over the DNS</strong></p>
<p>The Internet doesn&#8217;t understand host names like www.megapanzer.com. Instead it uses IP addresses like 194.208.66.33. And because we are to lazy to remember these irritating IP addresses and prefer the significant hostnames instead the DNS maps between this addressing conventions. Everytime you want to connect to the megapanzer server www.megapanzer.com your computer has to ask a DNS server under which IP address this server is reachable. It doesn&#8217;t take too much imagination taking over the DNS service in a victims LAN is the key to the power. Once an attacker controls the DNS, for example by injecting faked DNS response, he controls where the data stream is directed. Traffic destined for ebanking.ubs.com can easily be redirected to an attackers server.</p>
<p><strong>Method 6 : Acting as default gateway</strong></p>
<p>The computers in an ethernet based LAN don&#8217;t communicate by IP their addresses. IP addresses are used in the Internet but not inside a small, ethernet based home LAN. Ethernet is using MAC addresses. So every network adapter connected to a computer was assigned once a unique MAC address by its manufacturer. The computers in a LAN constantly tell each other what MAC address and what IP address they have and they keep this information in their memory for a while. Also WLAN adapters support the ethernet standard and have therefore MAC addresses. The only difference between wired and wireless network adapters is the medium (air and copper) they are using, the first layer in the OSI model. From layer 2 on they work exactly the same way.<br />
This situation allows an attacker to spread wrong information inside a LAN and telling every computer HIS computer is the router that leads to the Internet. Afterwards every computer sends its data packets to the attacker instead to the real Internet router. The attacker takes over the data stream and can do with it whatever he wants. Relaying, modifying, blocking &#8230;</p>
<p>To give you an idea how this two examples lead to a successful data injection just imagine you as a victim want to download an executable file via your browser. You click on a specific link and are expecting the browser will download this file. An attacker can intercept your request and instead of sending back the real executable the <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1214" title="Glossary: Trojan horse" target="_blank">trojan horse</a> will be injected and disguised to make it look unsuspicious. Even if sceptics think you could check the <a class="glossaryLink" href="http://www.megapanzer.com/" title="Glossary: Hash" target="_blank">hash</a> checksum also them know only a small percentage really does it and the check sums are not provided everytime.</p>
<p><strong>Method 7 : Intruding the victims Internet router</strong></p>
<p>As you saw in the previous examples the Internet access router is the central point. These attacks were conducted from the internal part of the network. There is also an external part of the network which attackers can reach and attack over the Internet.<br />
Still a big number of home Internet routers are accessible over the Internet and offer a user interface for administration purposes. Often over HTTP/HTTPS and also Telnet and SSH. But private users are not known for having a IT security policy they have to respect. So you can think of several situations you encounter when connecting to a home router:</p>
<ul>
<li>The admin interface acces is blocked</li>
<li>The admin interface access is open but unprotected</li>
<li>The admin interface access is open and protected with the default account settings</li>
<li>The admin interface access is  open and protected with a new password</li>
</ul>
<p>These sittuations invite an attacker to invest some time and trying to crack the password by a bruteforce or <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1682" title="Glossary: Dictionary attack" target="_blank">dictionary attack</a>.<br />
Once this obstacle was overcome by an attacker he has the control over the appliance, the place where all the data passes to and from the Internet. As an example how the stream can be controled by the attacker think of the DNS service from the two previous examples. The attacker can configure the Internet router that way to redirect all the DNS requests to a DNS server that is controlled by the attacker.</p>
<p><strong>Method 8 : Anonymizing proxy server data injection</strong></p>
<p>TOR and I2P, to mention the most famous amongst them, are quite popular anonymizing services. You install the proxy software on your computer, customize your browser a little and you surf the net anonymously. But the anonymizing services have the problem when the data stream reenters the regular Internet again you don&#8217;t know if and who is reading or maybe even manipulating your data stream.<br />
At least in the open and anonymizing proxy chains it is an easy game to infiltrate other peoples data stream, to read it, to manipulate it and to inject data they never requested (read <a href="http://www.megapanzer.com/2009/04/09/one-week-with-the-spammers-and-hackers-day-three/">here</a>).</p>
<p><strong>Method 9 : DNS cache poisoning</strong></p>
<p>I would consider DNS cache poisoning as a rather esotherical method that maybe worked one day. But then I remember just too good when Dan Kaminsky discovered and published the DNS poisoning vulnerability. But as with TCP/IP spoofing, the Sendmail Debug or CGI/PHF vulnerabilities, it just doesn&#8217;t happen anymore.</p>
<p>DNS cache poisoning is a technique to convince for example a big ISPs DNS server, like the one from Bluewin (the biggest access provider in Switzerland), a hostname outside of their domain like ebanking.ubs.com is reachable under the IP address 192.168.1.1. Of course this is the wrong IP address but all the Bluewin users who ask this DNS server for the IP address of ebanking.ubs.com will see this answer. by using DNS cache poisoning an attacker could redirect the data packets from the Bluewin users to a destination of his choice. He controls the stream.</p></glossarycode></glossarycode></glossarycode></glossarycode></glossarycode></glossarycode>]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2009/05/06/nine_ways_how_hackers_propagate_malware_one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Source : Modifying the hosts entry on Windows</title>
		<link>http://www.megapanzer.com/2009/03/06/source_modify_hosts_entry/</link>
		<comments>http://www.megapanzer.com/2009/03/06/source_modify_hosts_entry/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 20:13:15 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Tools & sources]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[sourcecode]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=426</guid>
		<description><![CDATA[Below, you can find a link to the source code with the function(s) to add and remove entries in the Windows hosts file. panzer_modifyhostsfile.cpp]]></description>
			<content:encoded><![CDATA[<p>Below, you can find a link to the source code with the function(s) to add and remove entries in the Windows hosts file.</p>
<p><a href="http://www.megapanzer.com/wp-content/uploads/panzer_modifyhostsfile.cpp" target="_blank">panzer_modifyhostsfile.cpp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2009/03/06/source_modify_hosts_entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Source : Change DNS server settings</title>
		<link>http://www.megapanzer.com/2009/03/06/source_modify_dns_server/</link>
		<comments>http://www.megapanzer.com/2009/03/06/source_modify_dns_server/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 19:21:51 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Tools & sources]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[sourcecode]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=413</guid>
		<description><![CDATA[Below, you can find a link to the source code with the function(s) to modify the DNS server settings on a Windows system. panzer_setdnsserver.cpp]]></description>
			<content:encoded><![CDATA[<p>Below, you can find a link to the source code with the function(s) to modify the DNS server settings on a Windows system.</p>
<p><a href="http://www.megapanzer.com/wp-content/uploads/panzer_setdnsserver.cpp" target="_blank">panzer_setdnsserver.cpp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2009/03/06/source_modify_dns_server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS reconfiguration</title>
		<link>http://www.megapanzer.com/2009/03/04/doc_2_1_1/</link>
		<comments>http://www.megapanzer.com/2009/03/04/doc_2_1_1/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 16:33:48 +0000</pubDate>
		<dc:creator>carrumba</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[MITM]]></category>

		<guid isPermaLink="false">http://www.megapanzer.com/?p=378</guid>
		<description><![CDATA[Undeniable the DNS (domain name system) is the Achilles heel of the Internet and the day this system fails, for whatsoever reason, we stuck in deep problems. We had to memorize IP addresses to connect to computers in the network and the situation would become even worse because the world hat to work withouht the [...]]]></description>
			<content:encoded><![CDATA[<glossarycode><glossarycode><p>Undeniable the  DNS (domain name system) is the Achilles heel of the Internet and the day this system fails, for whatsoever reason, we stuck in deep problems. We had to memorize IP addresses to connect   to computers in the network and  the situation would become even worse because the world hat to work withouht the HTTP (HyperText Transfer Protocol) virtual hosts we had to use IPv6 addresses (or maybe this situation would kill the world wide webs popularity and the growth of the net had been much smaller). Generally spoken this means :  whoever controls the DNS, controls the data stream and has the power. This is the ideal point for attackers to start simple but very effective  attacks.<br />
<span id="more-378"></span><br />
An attacker can replace the DNS server entry by a server that is controlled by himself or modify the hosts file (this file exists on UNIX and Windows). That way an attacker can redirect the traffic for a specific host to a system that is controlled by him and send the requests afterwards to the real system.</p>
<p>This is a typical and straightforward <a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1430" title="Glossary: MITM" target="_blank">MITM</a> (<a class="glossaryLink" href="http://www.megapanzer.com/?page_id=1428" title="Glossary: Man in the middle" target="_blank">Man In The Middle</a>)  attack.  As long as the victim is not using an encrypted connection the attacker can read all the transmitted data and can extract sensitive data like user access credentials or the balance of the bank account.</p>
<p>SOURCE : <a href="http://www.megapanzer.com/2009/03/06/source_modify_dns_server/">modify  DNS server entry</a></p>
<p>SOURCE : <a href="http://www.megapanzer.com/2009/03/06/source_modify_hosts_entry/">modify hosts entries</a></p></glossarycode></glossarycode>]]></content:encoded>
			<wfw:commentRss>http://www.megapanzer.com/2009/03/04/doc_2_1_1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

