<?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>patrik.cqure.net &#187; Security</title>
	<atom:link href="http://patrik.cqure.net/wordpress/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrik.cqure.net/wordpress</link>
	<description>random thoughts about random things</description>
	<lastBuildDate>Fri, 27 Nov 2009 23:09:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>System keychain + passwords = bad idea</title>
		<link>http://patrik.cqure.net/wordpress/2009/09/18/system-keychain-passwords-bad-idea/</link>
		<comments>http://patrik.cqure.net/wordpress/2009/09/18/system-keychain-passwords-bad-idea/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:56:35 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=195</guid>
		<description><![CDATA[Well, it finally bit me in the &#8230; Storing sensitive information, such as passwords for encrypted volumes, in the system keychain is a *REALLY* *REALY* bad idea! Why? Well, in contrast to the login keychain that is unlocked by a user&#8217;s password (transparently, if the same as the login password) the system keychain is accessible [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it finally bit me in the &#8230; Storing sensitive information, such as passwords for encrypted volumes, in the system keychain is a *REALLY* *REALY* bad idea! Why? Well, in contrast to the login keychain that is unlocked by a user&#8217;s password (transparently, if the same as the login password) the system keychain is accessible by any administrator on the system. So basically anyone with root access can dump all passwords from the system keychain.</p>
<p>If this wasn&#8217;t bad enough you can simply boot the system using the installation DVD and reset any administrator password, login and have instant access to the system keychain. So, well, using the system keychain for passwords to encrypted disks is not a great idea.</p>
<p>I therefore removed the articles referring to how to setup TrueCrypt with the keychain.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2009%2F09%2F18%2Fsystem-keychain-passwords-bad-idea%2F&amp;linkname=System%20keychain%20%2B%20passwords%20%3D%20bad%20idea"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2009/09/18/system-keychain-passwords-bad-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling TrueCrypt for Snow Leopard</title>
		<link>http://patrik.cqure.net/wordpress/2009/09/15/compiling-truecrypt-for-snow-leopard/</link>
		<comments>http://patrik.cqure.net/wordpress/2009/09/15/compiling-truecrypt-for-snow-leopard/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 16:34:19 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[MacFUSE]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[TrueCrypt]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=175</guid>
		<description><![CDATA[UPDATE 2009-10-22: Truecrypt 6.3 has been released, no need for this anymore UPDATE 2009-09-18-2: Removed ref. to Fink as it requires to be built from source on Snow Leopard UPDATE 2009-09-18: Added a missing requirement: pkg-config. See &#8220;installing pkg-config&#8221; Unfortunately licensing issues prevent me from publishing my pre-compiled versions of TrueCrypt. So the next best [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE 2009-10-22: Truecrypt 6.3 has been released, no need for this anymore<br />
UPDATE 2009-09-18-2: Removed ref. to Fink as it requires to be built from source on Snow Leopard<br />
UPDATE 2009-09-18: Added a missing requirement: pkg-config. See &#8220;installing pkg-config&#8221;</p>
<p>Unfortunately licensing issues prevent me from publishing my pre-compiled versions of TrueCrypt. So the next best thing I can do until there&#8217;s a new version of TrueCrypt that supports Snow Leopard, is to publish a &#8220;simple&#8221; do it your self guide.</p>
<p>In order to compile TrueCrypt for Mac OS X Snow Leopard you need the following:</p>
<ol>
<li>XCode (it&#8217;s under the Optional folder on the Snow Leopard Install DVD)</li>
<li>macFUSE</li>
<li>TrueCrypt and wxWidgets source code</li>
<li>Header files from the RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20.</li>
<li>pkg-config</li>
<li>A patch that modifies the source code so it compiles under Snow Leopard.</li>
</ol>
<p><span id="more-175"></span></p>
<p><strong>Installing XCode</strong></p>
<p>Install XCode from the Snow Leopard installation DVD. This should be pretty straight forward and hopefully does not need any further explanation.</p>
<p><strong>Installing macFUSE</strong></p>
<p>Download and install macFUSE from here: <a href="http://code.google.com/p/macfuse">http://code.google.com/p/macfuse</a></p>
<p><strong>Installing pkg-config</strong></p>
<p>pkg-config can be installed either through MacPorts or through Fink. The difference is that MacPorts requires you to compile the source and Fink installs the binary version. I personally prefer Fink as it uses the debian package installer. Below you will find instructions for installing either through MacPorts. <span style="text-decoration: line-through;">OR Fink. Don&#8217;t do both!</span></p>
<p><span style="text-decoration: line-through;"><em>Installing pkg-config through Fink</em></span></p>
<ol>
<li><span style="text-decoration: line-through;">Get and install Fink 0.9 from here: <a href="http://www.finkproject.org/download/index.php?phpLang=en">http://www.finkproject.org/download/index.php?phpLang=en</a></span></li>
<li><span style="text-decoration: line-through;">Install pkgconfig by issuing the following command:<br />
</span><br />
<span style="text-decoration: line-through;">sudo apt-get update &amp;&amp; sudo apt-get install pkgconfig</span></li>
</ol>
<p><em>Installing pkg-config through MacPorts</em></p>
<ol>
<li> Get and install MacPorts from here: <a href="http://www.macports.org/install.php">http://www.macports.org/install.php</a></li>
<li>Install pkgconfig by issuing the following command:
<pre lang="bash">sudo port install pkgconfig</pre>
</li>
<li>Restart the Terminal application</li>
</ol>
<p><strong>Getting the TrueCrypt and wxWidgets source code</strong></p>
<p>Download the TrueCrypt source code (preferably the tar.gz version) from here: <a href="http://www.truecrypt.org/downloads2">http://www.truecrypt.org/downloads2</a></p>
<p>Open up a new Terminal window and create a new directory from where you will build TrueCrypt eg. $HOME/src:</p>
<pre lang="bash">mkdir $HOME/src</pre>
<p>Uncompress the downloaded file into the new directory:</p>
<pre lang="bash">cd $HOME/src; tar xvzf $HOME/Downloads/TrueCrypt\ 6.2a\ Source.tar.gz</pre>
<p>TrueCrypt uses the wxWidgets cross platform GUI library and therefore needs it to compile. Get it here:<br />
<a href="http://prdownloads.sourceforge.net/wxwindows/wxMac-2.8.10.tar.gz">http://prdownloads.sourceforge.net/wxwindows/wxMac-2.8.10.tar.gz</a></p>
<p>Uncompress the wxMac-2.8.10.tar.gz file into the $HOME/src directory using the following command:</p>
<pre lang="bash">cd $HOME/src; tar xvzf $HOME/Downloads/wxMac-2.8.10.tar.gz</pre>
<p>You should now have two directories in the $HOME/src directory truecrypt-6.2a-source and wxMac-2.8.10. You can verify this by running the following command:</p>
<pre lang="bash">ls $HOME/src</pre>
<p>In order to compile TrueCrypt for Snow Leopard the source code has to be patched slightly. I have prepared a patch file that can be applied to the code automatically using the patch utility. Download the patch from here: <a href="http://patrik.cqure.net/files/truecrypt-snow-leopard.patch">http://patrik.cqure.net/files/truecrypt-snow-leopard.patch</a></p>
<p>Apply the patch by running the following command:</p>
<pre lang="bash">cd $HOME/src; patch -p0 &lt; $HOME/Downloads/truecrypt-snow-leopard.patch</pre>
<p>You should see the following output:</p>
<blockquote><p>patching file truecrypt-6.2a-source/Main/FatalErrorHandler.cpp<br />
patching file truecrypt-6.2a-source/Main/StringFormatter.h<br />
patching file truecrypt-6.2a-source/Makefile<br />
Hunk #1 succeeded at 145 with fuzz 2.</p></blockquote>
<p>TrueCrypt also uses a number of header files from RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20. These have to be downloaded manually from here: <a href="http://ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20">ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20</a>. The files needed are pkcs11.h, pkcs11f.h and pkcs11t.h. They need to go into the directory $HOME/src/pkcs11. If your lazy you can run the following, which does this for you:</p>
<pre lang="bash">mkdir $HOME/src/pkcs11; cd $HOME/src/pkcs11; \
for f in pkcs11.h pkcs11f.h pkcs11t.h; do \
curl --no-epsv --ftp-pasv "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/${f}" &gt; ${f}; \
done</pre>
<p>Ok, so now we are all set with the source code and can begin compiling.</p>
<p><strong>Compiling TrueCrypt</strong></p>
<p>First of all we need to point out where our RSA Security pkcs stuff is located. You do this by issuing the following command in the Terminal:</p>
<pre lang="bash">export PKCS11_INC=$HOME/src/pkcs11</pre>
<p>Once this is done we can start to compile the wxWidgets by issuing the following command:</p>
<pre lang="bash">cd $HOME/src/truecrypt-6.2a-source; make WX_ROOT=$HOME/src/wxMac-2.8.10 wxbuild</pre>
<p>Compilation will take time and at times look as if it has stopped. Be patient and disregard any WARNINGS or error messages that you may see (there may be quite a few with different information!) If all went well you should now have a directory called $HOME/src/truecrypt-6.2a-source/wxrelease with 355 items in it. You can verify this by issuing the following command:</p>
<pre lang="bash">ls $HOME/src/truecrypt-6.2a-source/wxrelease | wc -l</pre>
<p>With the wxWidgets compiled we can now start compiling TrueCrypt by issuing the following command:</p>
<pre lang="bash">cd $HOME/src/truecrypt-6.2a-source; make WXSTATIC=1</pre>
<p>Again, compiling TrueCrypt will take some time but it should not return any errors. If all goes well, which it should if you have followed the guide properly, you should end up with a TrueCrypt.app folder under the Main directory. You can test whether the application works or not by running the following command:</p>
<pre lang="bash">open $HOME/src/truecrypt-6.2a-source/Main/TrueCrypt.app/</pre>
<p>If it starts, you&#8217;re all set and simply need to copy or move the application into /Applications as usual. From the Terminal you can do this by issuing the following command:</p>
<pre lang="bash">cp -R $HOME/src/truecrypt-6.2a-source/Main/TrueCrypt.app /Applications</pre>
<p>Good luck!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2009%2F09%2F15%2Fcompiling-truecrypt-for-snow-leopard%2F&amp;linkname=Compiling%20TrueCrypt%20for%20Snow%20Leopard"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2009/09/15/compiling-truecrypt-for-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>airbase-ng setup complete</title>
		<link>http://patrik.cqure.net/wordpress/2008/10/21/airbase-ng-setup-complete/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/10/21/airbase-ng-setup-complete/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 10:11:06 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[airbase-ng]]></category>
		<category><![CDATA[complete]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[r8187]]></category>
		<category><![CDATA[SKB]]></category>
		<category><![CDATA[wifi-hacking]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=72</guid>
		<description><![CDATA[Having put this project aside for a while I picked it up again after receiving a comment on a previous post. With a little help from the developer Hirte at aircrack my wifi-hacking setup is finally complete. It now works exactly the way I was hoping to get it running even when my MAC address [...]]]></description>
			<content:encoded><![CDATA[<p>Having put this project aside for a while I picked it up again after receiving a comment on a previous post. With a little help from the developer Hirte at aircrack my wifi-hacking setup is finally complete. It now works exactly the way I was hoping to get it running even when my MAC address is changed. The last parts were resolved by changing back to the r8187 driver which is available from the aircrack-ng web page <a href="http://www.aircrack-ng.org/doku.php?id=r8187">here</a>. In order to get rid of the annoying &#8220;SKB BUG: Invalid truesize (304) len=226, sizeof(sk_buff)=176&#8243; I made some adjustments to my syslog-ng configuration as suggested on their web page.</p>
<p>When running with a different MAC address, the address should be changed both using ifconfig and then set as parameter when starting airbase-ng with the -a switch.  Thanks again Hirte!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F10%2F21%2Fairbase-ng-setup-complete%2F&amp;linkname=airbase-ng%20setup%20complete"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/10/21/airbase-ng-setup-complete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airbase-ng, almost there &#8230;</title>
		<link>http://patrik.cqure.net/wordpress/2008/09/05/airbase-ng-almost-there/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/09/05/airbase-ng-almost-there/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 07:48:19 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[500mw]]></category>
		<category><![CDATA[aircrack-ng]]></category>
		<category><![CDATA[awus036h]]></category>
		<category><![CDATA[fake ap]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[karma]]></category>
		<category><![CDATA[rouge ap]]></category>
		<category><![CDATA[rtl8187]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=59</guid>
		<description><![CDATA[So I finally had some great success running airbase-ng as a rogue AP. I ended up buying the Alfa AWUS036H, an excellent 500mw Realtek 8187 based card. I am running a Virtual Gentoo system with the git version of the rtl8187 driver. The SKB BUF error messages from the aircrack-ng version of the driver where [...]]]></description>
			<content:encoded><![CDATA[<p>So I finally had some great success running airbase-ng as a rogue AP. I ended up buying the Alfa AWUS036H, an excellent 500mw Realtek 8187 based card. I am running a Virtual Gentoo system with the git version of the rtl8187 driver. The SKB BUF error messages from the aircrack-ng version of the driver where too annoying.</p>
<p>All in all I am very pleased with the setup, as it behaves consistantly now (knowing the needed tweaks to get it running). I believe it performs as well as running an AP with the madwifi-ng karma kernel patches from <a title="http://www.digininja.org/" href="http://www.digininja.org/">digininja</a>. Well, except for one thing. When changing the MAC address of the wifi card it doesn&#8217;t really do such a good job anymore. For some reason most clients fail to associate, some still do but theres a considerable drop in the number of connecting clients.</p>
<p>I have tried to change the MAC using both ifconfig and simply specifying the -a option to airbase-ng. Sniffing the traffic using another wifi card shows a lot of probe requests and responses being re-sent, but no requests to associate. From my initial checks I do not see any difference in the requests or responses apart from the &#8220;Frame check sequence&#8221; and the MAC of-course. But then again, I haven&#8217;t put that much time into it.</p>
<p>ANY insight into why this happens, and if I am missing something REALLY obvious would be great. I will file a bugreport in the aircrack-ng TRAC system once I collect and clean the relevant packet traces.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F09%2F05%2Fairbase-ng-almost-there%2F&amp;linkname=airbase-ng%2C%20almost%20there%20%26%238230%3B"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/09/05/airbase-ng-almost-there/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>more wi-fi AP testing</title>
		<link>http://patrik.cqure.net/wordpress/2008/08/27/more-wi-fi-ap-testing/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/08/27/more-wi-fi-ap-testing/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 16:08:39 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[airbase-ng]]></category>
		<category><![CDATA[atheros]]></category>
		<category><![CDATA[fake ap]]></category>
		<category><![CDATA[karma]]></category>
		<category><![CDATA[madwifi-ng]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[rogue ap]]></category>
		<category><![CDATA[wi-fi]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=43</guid>
		<description><![CDATA[OK so I&#8217;ve been able to get things running quite smoothly now. I cracked my Linksys WUSB54GC card open and soldered a pigtail connector to it according to the following photo http://www.josepino.com/other_projects/antenna/usb-antenna.jpg. I also added txPowerTuning=36 as option to the rt73 driver which I believe did make things somewhat better. What remains in order to [...]]]></description>
			<content:encoded><![CDATA[<p>OK so I&#8217;ve been able to get things running quite smoothly now. I cracked my Linksys WUSB54GC card open and soldered a pigtail connector to it according to the following photo <a href="http://www.josepino.com/other_projects/antenna/usb-antenna.jpg">http://www.josepino.com/other_projects/antenna/usb-antenna.jpg</a>. I also added txPowerTuning=36 as option to the rt73 driver which I believe did make things somewhat better.</p>
<p>What remains in order to get a good solid environment running is a better wifi card with a lot better transmit power, which I&#8217;ve ordered from the UK today. Hopefully it will be here by monday so me and my friend can do some more tests over a beer or two.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F08%2F27%2Fmore-wi-fi-ap-testing%2F&amp;linkname=more%20wi-fi%20AP%20testing"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/08/27/more-wi-fi-ap-testing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>testing airbase-ng some more</title>
		<link>http://patrik.cqure.net/wordpress/2008/08/22/testing-airbase-ng-some-more/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/08/22/testing-airbase-ng-some-more/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 12:03:22 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[airbase-ng]]></category>
		<category><![CDATA[atheros]]></category>
		<category><![CDATA[fake ap]]></category>
		<category><![CDATA[karma]]></category>
		<category><![CDATA[madwifi-ng]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[rogue ap]]></category>
		<category><![CDATA[wi-fi]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=40</guid>
		<description><![CDATA[I have had some better luck with airbase-ng the last few days, most likely due to a combination of factors. For starters I (once more) ripped apart my USB adapter and de-soldered my external antenna cable and found a better spot for it. The new re-fitted antenna works a lot better now and actually picks [...]]]></description>
			<content:encoded><![CDATA[<p>I have had some better luck with airbase-ng the last few days, most likely due to a combination of factors.</p>
<p>For starters I (once more) ripped apart my USB adapter and de-soldered my external antenna cable and found a better spot for it. The new re-fitted antenna works a lot better now and actually picks up quite a few new networks (and clients of course).</p>
<p>Another change I made was to switch the wireless drivers to the ones available from the git kernel sources which for the moment seem to work better than the previous ones.</p>
<p>I still believe in the airbase-ng concept of a user-mode AP which works with many different chipsets and not that dependent of driver patches. However, in order to switch away from the madwifi-patches it has to work atleast as good as they do and with a USB wifi-interface.</p>
<p>Once I get things running I&#8217;ll post my setup here. If someone already has done so, please drop me a line with your setup including hardware <img src='http://patrik.cqure.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F08%2F22%2Ftesting-airbase-ng-some-more%2F&amp;linkname=testing%20airbase-ng%20some%20more"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/08/22/testing-airbase-ng-some-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Runing karma on the eee</title>
		<link>http://patrik.cqure.net/wordpress/2008/08/20/runing-karma-on-the-eee/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/08/20/runing-karma-on-the-eee/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 15:53:06 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[airbase-ng]]></category>
		<category><![CDATA[atheros]]></category>
		<category><![CDATA[fake ap]]></category>
		<category><![CDATA[karma]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[rogue ap]]></category>
		<category><![CDATA[wi-fi]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=31</guid>
		<description><![CDATA[I recently purchased a new Asus eee 900 as I dropped my previous lovely pink 700 in the floor breaking the screen Due to its small size I thought it could be suitable for carrying around while performing wireless assesments. This led me to setting it up as both a scanning/monitoring device using the built-in [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a new Asus eee 900 as I dropped my previous lovely pink 700 in the floor breaking the screen <img src='http://patrik.cqure.net/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Due to its small size I thought it could be suitable for carrying around while performing wireless assesments. This led me to setting it up as both a scanning/monitoring device using the built-in wireless interface and a fake access point. Kismet basically ran out of the box while the fake access point took some more work.</p>
<p>As a friend told me about the airbase-ng project I though I would give it a shot&#8230;</p>
<p><span id="more-31"></span></p>
<p>Having tried airbase-ng with both the built-in Atheros chipset and with numerous USB rt73 based wifi-interfaces I was still not satisfied with the result. Even though I got airbase-ng working (at least sometimes) it would not let clients associate to the wifi-network to the extent that the &#8220;<a href="http://blog.trailofbits.com/karma/">karma</a>&#8221; madwifi-ng driver patches do. In spots were the patched madwifi drivers were picking up and letting 10 clients associate, airbase-ng would pick up and associate one and only list direct and broadcast probes from the others. Having limited time to debug the software in order to understand the reason for this I stuck to the madwifi-ng &#8220;karma&#8221; patches.</p>
<p>A good set of &#8220;karma&#8221; madwifi-ng patches are available from www.digininja.org and can be downloaded here:<br />
<a href="http://www.digininja.org/files/karma-madwifi-0.9.4-3379.patch">http://www.digininja.org/files/karma-madwifi-0.9.4-3379.patch</a></p>
<p>These patches make it possible to activate and inactivate the &#8220;karma&#8221; behaviour by using iwpriv and therefore do not interfere as much with the driver as other patches have been doing in the past.</p>
<p>In order to install them to the eee a subversion snapshot of the madwifi-ng drivers, supporting the chipset in the eee must be downloaded. A subversion snasphot of the madwifi-ng driver can be downloaded from here:<br />
<a href="http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3835-20080801.tar.gz">http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3835-20080801.tar.gz</a></p>
<p>As the patches come for another subversion version than the one were downloading a couple of hunks will fail when applying the patch. In order to address these failed hunks I am supplying an additional patch which has to be applied after this first one to correct the failed hunks. This patch can be found here:<br />
<a href="http://www.cqure.net/files/001-madwifi-hal-0.10.5.6-r3835-20080801-digininja-fixup.patch">http://www.cqure.net/files/001-madwifi-hal-0.10.5.6-r3835-20080801-digininja-fixup.patch</a></p>
<p>These are the steps i took to install the patched driver to the eee PC:</p>
<pre lang="bash">wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3835-20080801.tar.gz
tar xvzf madwifi-hal-0.10.5.6-r3835-20080801.tar.gz
cd madwifi-hal-0.10.5.6-r3835-20080801/
wget http://www.digininja.org/files/karma-madwifi-0.9.4-3379.patch
patch -p1 &lt; karma-madwifi-0.9.4-3379.patch
wget http://www.cqure.net/files/001-madwifi-hal-0.10.5.6-r3835-20080801-digininja-fixup.patch
patch -p1 &lt; 001-madwifi-hal-0.10.5.6-r3835-20080801-digininja-fixup.patch
make
sudo make install</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F08%2F20%2Fruning-karma-on-the-eee%2F&amp;linkname=Runing%20karma%20on%20the%20eee"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/08/20/runing-karma-on-the-eee/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OWASP meeting &#8211; Stockholm 20080527</title>
		<link>http://patrik.cqure.net/wordpress/2008/05/28/owasp-meeting-stockholm-20080527/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/05/28/owasp-meeting-stockholm-20080527/#comments</comments>
		<pubDate>Wed, 28 May 2008 21:12:48 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[injection]]></category>
		<category><![CDATA[OWASP]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=19</guid>
		<description><![CDATA[So, we had yet another OWASP &#8211; meeting here in Stockholm, Sweden yesterday. I must say I was pleased to see that so many people took the time to attend and listen to us three speakers. I held yet another speech on SQL injection and yet again overestimated my ability to deliver slides at a [...]]]></description>
			<content:encoded><![CDATA[<p>So, we had yet another OWASP &#8211; meeting here in Stockholm, Sweden yesterday. I must say I was pleased to see that so many people took the time to attend and listen to us three speakers.</p>
<p>I held yet another speech on SQL injection and yet again overestimated my ability to deliver slides at a pace of 0.78 minutes per slide. Skipping through a few of them gave me just the little time I needed to finish up with a short demo <img src='http://patrik.cqure.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After a few requests for the presentation I decided to put it online together with the small DNS server and samle code I used to demonstrate the DNS-channeling parts.</p>
<p>The DNS server has a brief help describing each parameter. Basically in order to try it out, it needs to be run on either:</p>
<ul>
<li>An authorative DNS in the zone against which we are tunneling our queries. Please note that in the event of a zone having multiple DNS servers assigned to it, all queries will NOT end up at the same resolver.</li>
<li>On the host assigned as the DNS server on the victim DB server</li>
</ul>
<p>When starting the dns_server.pl script a zone for which it answer queries needs to be specified. This is done with the &#8220;-q&#8221; option. In my cheat sheet I am using the zone inj.cqure.net and therefore need to start the DNS server like this:  ./dns_server.pl -q inj.cqure.net</p>
<p>A zip-file containing the PDF presentation, a subset of the cheat sheet I used and my small DNS server is available for download from <a title="http://www.cqure.net/files/OWASP - Sweden - 20080527 - SQL injection.zip" href="http://www.cqure.net/files/OWASP - Sweden - 20080527 - SQL injection.zip">here</a>.</p>
<p>Feel free to drop me a line if you have any questions.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F05%2F28%2Fowasp-meeting-stockholm-20080527%2F&amp;linkname=OWASP%20meeting%20%26%238211%3B%20Stockholm%2020080527"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/05/28/owasp-meeting-stockholm-20080527/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There is a Swedish OWASP chapter &#8230;.</title>
		<link>http://patrik.cqure.net/wordpress/2008/04/29/there-is-a-swedish-owasp-chapter/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/04/29/there-is-a-swedish-owasp-chapter/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 20:00:31 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[chapter]]></category>
		<category><![CDATA[OWASP]]></category>
		<category><![CDATA[sweden]]></category>
		<category><![CDATA[swedish]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=9</guid>
		<description><![CDATA[&#8230;. since a while a go. I know some of the people I meet have not heard of it so I am helping to spread the word. &#8220;The Open Web Application Security Project (OWASP) is a worldwide free and open community focused on improving the security of application software. Our mission is to make application [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;. since a while a go. I know some of the people I meet have not heard of it so I am helping to spread the word.</p>
<p>&#8220;The Open Web Application Security Project (OWASP) is a worldwide free and open community focused on improving the security of application software. Our mission is to make application security &#8220;visible,&#8221; so that people and organizations can make informed decisions about application security risks.&#8221;</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F04%2F29%2Fthere-is-a-swedish-owasp-chapter%2F&amp;linkname=There%20is%20a%20Swedish%20OWASP%20chapter%20%26%238230%3B."><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/04/29/there-is-a-swedish-owasp-chapter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New blog</title>
		<link>http://patrik.cqure.net/wordpress/2008/04/29/new-blog/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/04/29/new-blog/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 19:07:56 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[cqure.net www.cqure.net new blog Patrik Karlsson]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=3</guid>
		<description><![CDATA[Ok. So there is not much happening at www.cqure.net for the moment as I have been really swamped with work lately. Not that I don&#8217;t do anything interesting worth publishing. It&#8217;s rather so that I have been working on other stuff, which does not always see fit publishing on that site. Lately theres been quite [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. So there is not much happening at www.cqure.net for the moment as I have been really swamped with work lately. Not that I don&#8217;t do anything interesting worth publishing. It&#8217;s rather so that I have been working on other stuff, which does not always see fit publishing on that site. Lately theres been quite a few things&#8230;. I have decided that they now belong in here.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F04%2F29%2Fnew-blog%2F&amp;linkname=New%20blog"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/04/29/new-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
