<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-665968158912867945</id><updated>2012-02-16T17:58:52.139-08:00</updated><title type='text'>Matthieu Tourne - Random Stuffs</title><subtitle type='html'>Anything that's too big to fit on Twitter!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mattourne.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/665968158912867945/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mattourne.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Matthieu Tourne</name><uri>http://www.blogger.com/profile/15561687382086661669</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-665968158912867945.post-4729363995299816666</id><published>2009-01-05T06:26:00.000-08:00</published><updated>2009-01-05T07:01:20.270-08:00</updated><title type='text'>Watch hulu.com outside the US on Mac OS X</title><content type='html'>It's fairly easy to go around most ip geolocation systems like on pandora.com, you just need a proxy located in the US.&lt;br /&gt;&lt;br /&gt;But hulu.com made it a bit trickier, by using Flash's RTMP connection to get the real IP of the viewer. Using a socks proxy inside your browser won't be enough to get around this. We need a way to "socskify" transparently the whole browser. This way all the tcp connection (including flash RTMP) will appear to come from the US.&lt;br /&gt;&lt;br /&gt;I tried tsocks/dsocks/dante from macports, none of them worked well.&lt;br /&gt;I finally found &lt;a href="http://www.proxifier.com/"&gt;proxifier&lt;/a&gt; a native cocoa application which let you tunnel a whole application through various kinds of proxies.&lt;br /&gt;&lt;br /&gt;Let's see how this works:&lt;br /&gt;A friend of mine gave me an access to a ssh server in the US. I use it as a local socks proxy.&lt;br /&gt;But you can probably use any public http or socks proxy located in the US.&lt;br /&gt;&lt;br /&gt;First create an local socks proxy on the port 8800 using ssh. In a terminal type :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssh -D 8800 USER&lt;user&gt;@SSH_SERVER_IN_THE_US&lt;/user&gt;&lt;/span&gt;&lt;br /&gt;Leave the terminal open.&lt;br /&gt;&lt;br /&gt;Then go to Proxifier &gt; Options &gt; Proxy Settings &gt; Add&lt;br /&gt;Add the address, port, andtype of the proxy you want to use.&lt;br /&gt;In this case,&lt;span style="font-style: italic;"&gt; localhost:8800&lt;/span&gt; and socks5&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_a-lfYIcHO0g/SWIehDcTloI/AAAAAAAABx0/cbEUJbn0o2w/s1600-h/Picture+6.png"&gt;&lt;/a&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_a-lfYIcHO0g/SWIdXjGQewI/AAAAAAAABxs/PG7lBJdO8Es/s1600-h/Picture+4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 196px; height: 200px;" src="http://3.bp.blogspot.com/_a-lfYIcHO0g/SWIdXjGQewI/AAAAAAAABxs/PG7lBJdO8Es/s200/Picture+4.png" alt="" id="BLOGGER_PHOTO_ID_5287821202882067202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Finally go to Proxifier &gt; Options &gt; Proxification Rules&lt;br /&gt;Select "&lt;span style="font-style: italic;"&gt;Process Only the Following&lt;/span&gt;" option and add a rule for the applications you want to tunnel through the proxy (by default it'll try to socksify everything, and in my case I need the ssh connection to be direct).&lt;br /&gt;The configuration should look somewhat like that :&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_a-lfYIcHO0g/SWIfOju2kCI/AAAAAAAAByE/MGRtPm61F_o/s1600-h/Picture+6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 283px;" src="http://1.bp.blogspot.com/_a-lfYIcHO0g/SWIfOju2kCI/AAAAAAAAByE/MGRtPm61F_o/s400/Picture+6.png" alt="" id="BLOGGER_PHOTO_ID_5287823247456768034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;That should do the trick, you can now enjoy your favorite series.&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_a-lfYIcHO0g/SWIe19vNQDI/AAAAAAAABx8/gx3tf77b7QM/s1600-h/Picture+6.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/665968158912867945-4729363995299816666?l=mattourne.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mattourne.blogspot.com/feeds/4729363995299816666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=665968158912867945&amp;postID=4729363995299816666' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/665968158912867945/posts/default/4729363995299816666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/665968158912867945/posts/default/4729363995299816666'/><link rel='alternate' type='text/html' href='http://mattourne.blogspot.com/2009/01/watch-hulucom-outside-us-on-mac-os-x.html' title='Watch hulu.com outside the US on Mac OS X'/><author><name>Matthieu Tourne</name><uri>http://www.blogger.com/profile/15561687382086661669</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_a-lfYIcHO0g/SWIdXjGQewI/AAAAAAAABxs/PG7lBJdO8Es/s72-c/Picture+4.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-665968158912867945.post-5558062522447104763</id><published>2008-10-14T12:42:00.000-07:00</published><updated>2010-03-06T19:12:30.621-08:00</updated><title type='text'>Caffe Latte</title><content type='html'>DISCLAIMER: This discussion is only for academic research around the model of security implemented by WEP. I do not encourage you to break the law and gain unlawful access to protected network.&lt;br /&gt;The source code provided is only a demonstration, and is not by any mean a practical attack.&lt;br /&gt;&lt;br /&gt;During the ToorCon 9, security researcher Vivek Ramachandran exposed an innovative attack to compromise wep protected WiFi networks.&lt;br /&gt;&lt;br /&gt;This attack called &lt;a href="http://toorcon.org/2007/event.php?id=25"&gt;Caffe Latte&lt;/a&gt; targets clients of the network instead of the AP, also there is no need to be close to the network to recover the wep key.&lt;br /&gt;Let say you have the wep network you usually connect to on top of your preferred network and you boot your computer next to a "Caffe Latte enabled" laptop, in a starbucks for example it will lure the client into thinking it's the AP of that network. Then in about 7 minutes, the time it will take you to drink your coffee the wep key can be recovered.&lt;br /&gt;&lt;br /&gt;Here is my attempt to make my own working implementation of Caffe Latte :&lt;br /&gt;&lt;span style="font-size: 130%;"&gt;&lt;br /&gt;How it works&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here you can download the &lt;a href="http://www.airtightnetworks.com/fileadmin/ppt/Toorcon.ppt"&gt;presentation&lt;/a&gt; made at ToorCon by Vivek.&lt;br /&gt;&lt;br /&gt;To summarize :&lt;br /&gt;&lt;ol&gt;&lt;li&gt;First you need to lure the client into associating with your wep enabled AP, it needs to have the same SSID.&lt;/li&gt;&lt;li&gt;Once the connection is established a Windows box will try several different things untill it will send a &lt;a href="http://wiki.wireshark.org/Gratuitous_ARP"&gt;Gratuitous ARP&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Even though the packet is encrypted, it is easy to determine that it's the Gratuitous ARP (destination address, size of the packet)&lt;/li&gt;&lt;li&gt;Using the techniques described in &lt;a href="http://tapir.cs.ucl.ac.uk/bittau-wep.pdf"&gt;The Final Nail in WEP's Coffin&lt;/a&gt;, we can change bits in this packet and still have a valid packet (we still ignore the key). We then craft an ARP that the client will respond too.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;We then send this crafted packet over and over, in order to gather several thousands of responses.&lt;/li&gt;&lt;li&gt;Using tools such as &lt;a href="http://www.aircrack-ng.org/"&gt;Aircrack-ng&lt;/a&gt; we can there recover the key.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-size: 130%;"&gt;How I implemented it&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will most likely work only with wifi adapter using the madwifi-ng driver.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The first part is to lure the client into associating with us, I used a patch for the madwifi-ng driver from &lt;a href="http://blog.trailofbits.com/karma/"&gt;KARMA&lt;/a&gt; (a rogue access point project), which will allow the creation of an 802.11 Access Point that responds to any probed SSID. (I modified the patch to work with the actual driver)&lt;/li&gt;&lt;li&gt;Another patch needs to be applied in order to be able to inject 802.11 frame with the network adapter, this one is found in the  &lt;a href="http://www.aircrack-ng.org/"&gt;Aircrack-ng&lt;/a&gt; suite.&lt;/li&gt;&lt;li&gt;I then used &lt;a href="http://802.11ninja.net/lorcon/"&gt;Lorcon&lt;/a&gt; which is a "generic library for injecting 802.11 frames,  capable of injection via multiple driver frameworks" to develop the real Caffe Latte attack.&lt;/li&gt;&lt;/ol&gt;Here you can &lt;a href="http://www.tsunanet.net/~mtourne/cafe-latte.tgz"&gt;download&lt;/a&gt; a demo implementation of this, including source code, patches and directions if you want to try it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/665968158912867945-5558062522447104763?l=mattourne.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mattourne.blogspot.com/feeds/5558062522447104763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=665968158912867945&amp;postID=5558062522447104763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/665968158912867945/posts/default/5558062522447104763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/665968158912867945/posts/default/5558062522447104763'/><link rel='alternate' type='text/html' href='http://mattourne.blogspot.com/2008/10/caff-latte.html' title='Caffe Latte'/><author><name>Matthieu Tourne</name><uri>http://www.blogger.com/profile/15561687382086661669</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
