<?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: Sergio Proxy &#8211; Injecting, Modifying, and Blocking HTTP Traffic</title>
	<atom:link href="http://spareclockcycles.org/2010/06/10/sergio-proxy-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sergio-proxy-released</link>
	<description>Hacking is freedom.</description>
	<lastBuildDate>Tue, 31 Jan 2012 05:22:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hack all the world - Open Penetration Testing - Focusecurity.Org</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-1231</link>
		<dc:creator>Hack all the world - Open Penetration Testing - Focusecurity.Org</dc:creator>
		<pubDate>Sat, 18 Jun 2011 03:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-1231</guid>
		<description>[...] http://spareclockcycles.org/2010/06/10/sergio-proxy-released/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://spareclockcycles.org/2010/06/10/sergio-proxy-released/" rel="nofollow">http://spareclockcycles.org/2010/06/10/sergio-proxy-released/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-1209</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 23 May 2011 18:16:03 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-1209</guid>
		<description>Nice job! Just what I was looking for. I managed to get it to work in tandem with ettercap (cause you apparently kinda forgot to do the actual MITM part per se) and kernel redirection of packages so that the proxy can intercept them. 
By the way, using this it&#039;s really easy to trick facebook.com into changing the login form-action to http instead of https. They should really fix that.</description>
		<content:encoded><![CDATA[<p>Nice job! Just what I was looking for. I managed to get it to work in tandem with ettercap (cause you apparently kinda forgot to do the actual MITM part per se) and kernel redirection of packages so that the proxy can intercept them.<br />
By the way, using this it&#8217;s really easy to trick facebook.com into changing the login form-action to http instead of https. They should really fix that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-1168</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 05 Apr 2011 00:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-1168</guid>
		<description>Correction the above should be:

– You need to install the distribution packages
– I just copied mine from /usr/lib/python2.5/site-packages to /usr/lib/python2.6/dist-packages</description>
		<content:encoded><![CDATA[<p>Correction the above should be:</p>
<p>– You need to install the distribution packages<br />
– I just copied mine from /usr/lib/python2.5/site-packages to /usr/lib/python2.6/dist-packages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supernothing</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-1141</link>
		<dc:creator>supernothing</dc:creator>
		<pubDate>Fri, 18 Mar 2011 11:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-1141</guid>
		<description>@akshah Code should still work, that&#039;s just a warning. Python is just letting you know that the md5 module (which they&#039;re using in the twisted libs) is deprecated and that the code should be migrated to use hashlib instead.</description>
		<content:encoded><![CDATA[<p>@akshah Code should still work, that&#8217;s just a warning. Python is just letting you know that the md5 module (which they&#8217;re using in the twisted libs) is deprecated and that the code should be migrated to use hashlib instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akshah</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-1139</link>
		<dc:creator>akshah</dc:creator>
		<pubDate>Fri, 18 Mar 2011 11:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-1139</guid>
		<description>sorrrrry i forgot to mention im using backtrack 4 r2 

i follow what james did.. but getting error like that</description>
		<content:encoded><![CDATA[<p>sorrrrry i forgot to mention im using backtrack 4 r2 </p>
<p>i follow what james did.. but getting error like that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akshah</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-1138</link>
		<dc:creator>akshah</dc:creator>
		<pubDate>Fri, 18 Mar 2011 10:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-1138</guid>
		<description>hi im having error like this 

/usr/lib/python2.6/dist-packages/twisted/internet/_sslverify.py:4: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import itertools, md5
Imported Request Functions:
Imported Reply Functions:

how to fix this?</description>
		<content:encoded><![CDATA[<p>hi im having error like this </p>
<p>/usr/lib/python2.6/dist-packages/twisted/internet/_sslverify.py:4: DeprecationWarning: the md5 module is deprecated; use hashlib instead<br />
  import itertools, md5<br />
Imported Request Functions:<br />
Imported Reply Functions:</p>
<p>how to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-807</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 24 Dec 2010 04:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-807</guid>
		<description>For Backtrack Users:

Install Python 2.6 on Ubuntu 8.04 LTS

-- Add to /etc/apt/sources.list:

deb http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main

-- Import the pub key:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D81367B9

-- Install python2.6:

apt-get install python2.6

-- You need to install the distribution packages
-- I just copied mine from /etc/lib/python2.5/site-packages to /etc/lib/python2.6/dist-packages

-- To run a script: put python2.6 in front, for example: 
python2.6 ./UserMITM.py</description>
		<content:encoded><![CDATA[<p>For Backtrack Users:</p>
<p>Install Python 2.6 on Ubuntu 8.04 LTS</p>
<p>&#8211; Add to /etc/apt/sources.list:</p>
<p>deb <a href="http://ppa.launchpad.net/python-dev/ppa/ubuntu" rel="nofollow">http://ppa.launchpad.net/python-dev/ppa/ubuntu</a> hardy main<br />
deb-src <a href="http://ppa.launchpad.net/python-dev/ppa/ubuntu" rel="nofollow">http://ppa.launchpad.net/python-dev/ppa/ubuntu</a> hardy main</p>
<p>&#8211; Import the pub key:</p>
<p>apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys D81367B9</p>
<p>&#8211; Install python2.6:</p>
<p>apt-get install python2.6</p>
<p>&#8211; You need to install the distribution packages<br />
&#8211; I just copied mine from /etc/lib/python2.5/site-packages to /etc/lib/python2.6/dist-packages</p>
<p>&#8211; To run a script: put python2.6 in front, for example:<br />
python2.6 ./UserMITM.py</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-805</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 24 Dec 2010 01:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-805</guid>
		<description>I did not mention this early, but I find all your articles extremely interesting and I am very surprised that you are not getting a lot more mention for your work from other sources..  
I was able to get the script working properly. Just like you I have been frustrated with ettercap filters. 
I am not a programmer so it will take me some time to figure out how to adapt it for various needs.
But I think you already came up with all the good ideas, which is basically to manipulate network traffic so that all kinds of attacks are possible.
Whether it is a Java script injection for example the BeEf framework, Evilgrade, Metasploit, these should all be a lot more effective with the work that you have done.

For now I just want to inject a simple invisible iframe that redirects traffic to the metasploit server.  Have not been able to do that with ettercap.

For the SMB example (start_smbchall.py) to make it easier for others use, you might want to have a place to declare the network interface so that other interfaces can be used:

iface =&quot;wlan0&quot;

iptbl_enable = &quot;iptables -t nat -A PREROUTING -i %s -p tcp --dport 80 -j REDIRECT --to-port 8080&quot; % (iface)

ettr_start = &quot;%s -T -o -i %s -M arp /%s/ /%s/&quot; % (etter_loc,iface,target1,target2)

Thank you for your excellent work!</description>
		<content:encoded><![CDATA[<p>I did not mention this early, but I find all your articles extremely interesting and I am very surprised that you are not getting a lot more mention for your work from other sources..<br />
I was able to get the script working properly. Just like you I have been frustrated with ettercap filters.<br />
I am not a programmer so it will take me some time to figure out how to adapt it for various needs.<br />
But I think you already came up with all the good ideas, which is basically to manipulate network traffic so that all kinds of attacks are possible.<br />
Whether it is a Java script injection for example the BeEf framework, Evilgrade, Metasploit, these should all be a lot more effective with the work that you have done.</p>
<p>For now I just want to inject a simple invisible iframe that redirects traffic to the metasploit server.  Have not been able to do that with ettercap.</p>
<p>For the SMB example (start_smbchall.py) to make it easier for others use, you might want to have a place to declare the network interface so that other interfaces can be used:</p>
<p>iface =&#8221;wlan0&#8243;</p>
<p>iptbl_enable = &#8220;iptables -t nat -A PREROUTING -i %s -p tcp &#8211;dport 80 -j REDIRECT &#8211;to-port 8080&#8243; % (iface)</p>
<p>ettr_start = &#8220;%s -T -o -i %s -M arp /%s/ /%s/&#8221; % (etter_loc,iface,target1,target2)</p>
<p>Thank you for your excellent work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supernothing</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-803</link>
		<dc:creator>supernothing</dc:creator>
		<pubDate>Thu, 23 Dec 2010 15:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-803</guid>
		<description>@james,

Thanks for letting me know about this! Not sure what I did exactly, but at some point a slightly older copy got uploaded. Should have been doing &quot;from twisted.web import proxy&quot; rather than &quot;import proxy&quot;, as I fixed the portions where I needed to override the proxy class. Let me know if the new source works for you, just use the same link to grab it.

I haven&#039;t really updated Sergio Proxy though since this post sadly, didn&#039;t have as much time over the summer as I had hoped. I will be getting back around to it at some point though, it was a fun project. If you do anything cool with it, let me know!</description>
		<content:encoded><![CDATA[<p>@james,</p>
<p>Thanks for letting me know about this! Not sure what I did exactly, but at some point a slightly older copy got uploaded. Should have been doing &#8220;from twisted.web import proxy&#8221; rather than &#8220;import proxy&#8221;, as I fixed the portions where I needed to override the proxy class. Let me know if the new source works for you, just use the same link to grab it.</p>
<p>I haven&#8217;t really updated Sergio Proxy though since this post sadly, didn&#8217;t have as much time over the summer as I had hoped. I will be getting back around to it at some point though, it was a fun project. If you do anything cool with it, let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://spareclockcycles.org/2010/06/10/sergio-proxy-released/comment-page-1/#comment-802</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 23 Dec 2010 15:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://spareclockcycles.wordpress.com/?p=139#comment-802</guid>
		<description>Interesting tool, did you ever update this.

I get the following error when I run this:

root@ubuntu:~/Downloads/sergio_proxy# python start_smbchall.py
Imported Request Functions: 
Imported Reply Functions: 
Traceback (most recent call last):
  File &quot;start_smbchall.py&quot;, line 21, in 
    from sergio_proxy import transparent_proxy
  File &quot;/root/Downloads/sergio_proxy/sergio_proxy/transparent_proxy.py&quot;, line 18, in 
    import proxy
  File &quot;/root/Downloads/sergio_proxy/sergio_proxy/proxy.py&quot;, line 35, in 
    class TransparentProxyClient(proxy.ProxyClient):
AttributeError: &#039;module&#039; object has no attribute &#039;ProxyClient&#039;
root@ubuntu:~/Downloads/sergio_proxy# 


Ubuntu 10.10</description>
		<content:encoded><![CDATA[<p>Interesting tool, did you ever update this.</p>
<p>I get the following error when I run this:</p>
<p>root@ubuntu:~/Downloads/sergio_proxy# python start_smbchall.py<br />
Imported Request Functions:<br />
Imported Reply Functions:<br />
Traceback (most recent call last):<br />
  File &#8220;start_smbchall.py&#8221;, line 21, in<br />
    from sergio_proxy import transparent_proxy<br />
  File &#8220;/root/Downloads/sergio_proxy/sergio_proxy/transparent_proxy.py&#8221;, line 18, in<br />
    import proxy<br />
  File &#8220;/root/Downloads/sergio_proxy/sergio_proxy/proxy.py&#8221;, line 35, in<br />
    class TransparentProxyClient(proxy.ProxyClient):<br />
AttributeError: &#8216;module&#8217; object has no attribute &#8216;ProxyClient&#8217;<br />
root@ubuntu:~/Downloads/sergio_proxy# </p>
<p>Ubuntu 10.10</p>
]]></content:encoded>
	</item>
</channel>
</rss>

