<?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>Information Systems Auditing</title>
	<atom:link href="http://www.jedge.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jedge.com/wordpress</link>
	<description></description>
	<lastBuildDate>Thu, 07 Mar 2013 01:47:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>TP-Link WR703N Custom Pwn Plug</title>
		<link>http://www.jedge.com/wordpress/2012/11/tp-link-wr703n-custom-pwn-plug/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tp-link-wr703n-custom-pwn-plug</link>
		<comments>http://www.jedge.com/wordpress/2012/11/tp-link-wr703n-custom-pwn-plug/#comments</comments>
		<pubDate>Mon, 19 Nov 2012 19:44:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware Hacking]]></category>
		<category><![CDATA[tp-link wr703n "hardware hacking" "Pwn Plug"]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=617</guid>
		<description><![CDATA[I was wandering the aisles of Fry&#8217;s Electronics and spotted a display of Westinghouse Outlet Valet&#8217;s for under $10.  The second I saw this I knew I my TP-Link wr703n was destined to be stuffed into it.  I also picked up an Inland USB Hub because I know it has the smallest foot print of any hub I&#8217;ve <a href='http://www.jedge.com/wordpress/2012/11/tp-link-wr703n-custom-pwn-plug/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft" style="border: 1px solid black; margin: 5px;" title="TP-Link WR703N inside a Westinghouse Outlet Valet" src="http://jedge.com/cpg15x/albums/tplink_powerpwn/normal_2012-11-18_17_11_23.jpg" alt="" width="269" height="359" />I was wandering the aisles of Fry&#8217;s Electronics and spotted a display of <a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=47#top_display_media">Westinghouse Outlet Valet&#8217;s</a> for under $10.  The second I saw this I knew I my <a href="http://jedge.com/cpg15x/displayimage.php?pid=61">TP-Link wr703n</a> was destined to be stuffed into it.  I also picked up an <a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=60#top_display_media">Inland USB Hub</a> because I know it has the smallest foot print of any hub I&#8217;ve seen.  I&#8217;ve actually been able to place it under the wr703n board in the original housing.  I also picked up a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820139529&amp;nm_mc=KNC-GoogleAdwords&amp;cm_mmc=KNC-GoogleAdwords-_-pla-_-NA-_-NA" target="_blank">Kingston 16GB micro SD card</a> which comes with a small footprint USB reader.  Couple that with a <a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=50#top_display_media">Samsung OEM wall charger</a> I had and we got the makings of a computer hiding in plain sight.</p>
<p>I created a Coppermine Photo Gallery <a href="http://jedge.com/cpg15x/thumbnails.php?album=4">album</a> with some pictures I took of the device as it was being made.</p>
<p>&nbsp;</p>
<p><span id="more-617"></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="center">
<p><div class="wp-caption alignnone" style="width: 106px"><img style="border: 1px solid black;" title="Westinghouse Outlet Valet" src="http://www.jedge.com/cpg15x/albums/tplink_powerpwn/thumb_2012-11-16_13_43_50.jpg" alt="" width="96" height="128" /><p class="wp-caption-text">Westinghouse Outlet Valet</p></div></td>
<td align="center">+</td>
<td align="center">
<p><div class="wp-caption alignnone" style="width: 138px"><img style="border: 1px solid black;" title="Inland USB Hub" src="http://www.jedge.com/cpg15x/albums/tplink_powerpwn/thumb_2012-11-18_01_59_03.jpg" alt="" width="128" height="96" /><p class="wp-caption-text">Inland USB Hub</p></div></td>
<td align="center">+</td>
<td align="center">
<p><div class="wp-caption alignnone" style="width: 138px"><img style="border: 1px solid black;" title="TP-Link WR703N" src="http://www.jedge.com/cpg15x/albums/tplink_powerpwn/thumb_2012-11-18_02_08_24.jpg" alt="" width="128" height="96" /><p class="wp-caption-text">TP-Link WR703N</p></div></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="20%" valign="top">
<p><div class="wp-caption aligncenter" style="width: 106px"><a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=46#top_display_media"><img class="  " style="border: 1px solid black;" title="Inside of Outlet Valet" src="http://jedge.com/cpg15x/albums/tplink_powerpwn/thumb_2012-11-16_13_44_54.jpg" alt="" width="96" height="128" /></a><p class="wp-caption-text">Inside of Outlet Valet</p></div></td>
<td valign="top"> When you open up the Westinghouse Outlet Valet you see that there is plenty of room to fit the WR703N once we replace the 120v AC to 5v DC converter with the much smaller Samsung OEM wall charger.  Here are some additional images of the internals of the outlet valet plus size comparisons between the power converters.
<p><a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=49#top_display_media" target="_blank">Image 1</a></p>
<p><a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=48#top_display_media" target="_blank">Image 2</a></p>
<p><a href="http://jedge.com/cpg15x/displayimage.php?album=4&amp;pid=50#top_display_media" target="_blank">Image 3</a></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table width="744" align="center">
<tbody>
<tr>
<td align="20%" valign="top"></td>
<td valign="top"> To open up the Samsung OEM converter I carefully removed the font panel (usb port side) using a guitar pick (from a cell phone repair kit) and a small flat head screw driver.  The front is held in place by clips (no glue).  To get the circuit out I tapped on the prongs.  The prongs aren&#8217;t even soldered to the circuit but rest on the board as it is packed into the small enclosure.</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="20%" valign="top">
<p><div class="wp-caption aligncenter" style="width: 133px"><a href="http://jedge.com/cpg15x/displayimage.php?album=5&amp;pid=68#top_display_media"><img class=" " style="border: 1px solid black;" title="Remove Connectors" src="http://jedge.com/cpg15x/albums/tplink_powerpwn/Descriptive%20Photos/thumb_STEP1.png" alt="" width="123" height="127" /></a><p class="wp-caption-text">Remove Connectors</p></div></td>
<td valign="top"> The USB ports and RJ45 port are removed from the WR703N circuit board using a solder sucker and desoldering braid/wick.  As highlighted with the image on the right I even drilled out two points keeping the RJ45 in place.</p>
<p>&nbsp;</p>
<p>WARNING:  Be super careful removing the micro-usb that powers the board as to not remove the pads that you want to solder.  These two key pads are GND and PWR which are the two outside pins.  I removed it as I had trouble soldering the wires with the port in the way.  So you may consider this step optional.</td>
<td valign="top">
<p><div class="wp-caption aligncenter" style="width: 134px"><a href="http://jedge.com/cpg15x/displayimage.php?album=5&amp;pid=70#top_display_media"><img class=" " style="border: 1px solid black;" title="Desolder Points on the bottom of the board." src="http://jedge.com/cpg15x/albums/tplink_powerpwn/Descriptive%20Photos/thumb_STEP3.PNG" alt="" width="124" height="127" /></a><p class="wp-caption-text">Board Underside</p></div></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="20%" valign="top">
<p><div class="wp-caption aligncenter" style="width: 133px"><a href="http://jedge.com/cpg15x/displayimage.php?album=5&amp;pid=67#top_display_media"><img class=" " style="border: 1px solid black;" title="Solder Points" src="http://jedge.com/cpg15x/albums/tplink_powerpwn/Descriptive%20Photos/thumb_STEP2.png" alt="" width="123" height="127" /></a><p class="wp-caption-text">Solder Points</p></div></td>
<td valign="top"> After the connectors are removed I attach the USB hub by soldering the wires to the underside of the board.  See which color wire goes to which point in the image to the right in the above paragraph.  I solder a ribbon cable to the pins that communicate with the RJ45 jack.  Only thing you have to remember with the RJ45 is the ribbon lines up with the pins but that is pretty simple.  (NOTE:  I had to desolder two pins on the connector because it was upside down <img src='http://www.jedge.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<p>&nbsp;</p>
<p>The image to the left shows the solder points for serial port communication.  The socket I chose to use for serial communication is a 3.5mm jack.  This is great for adding the serial connector to the original WR703N case.  I got the idea from this <a title="Building a Serial Port for TL-WR703N" href="http://wiki.villagetelco.org/index.php?title=Building_a_Serial_Port_for_TL-WR703N" target="_blank">site</a>.  I picked up the parts from the local Radioshack.  One item I did to mount the 3.3mm jack to the original WR703N case (and subsequently the Outlet Valet) was drill the hole with a 3/8 inch <a href="http://www.amazon.com/Black-Decker-71-536-4-Inch-Assortment/dp/B00099E7WE/ref=sr_1_4?s=hi&amp;ie=UTF8&amp;qid=1353349163&amp;sr=1-4&amp;keywords=spade+bit+set" target="_blank">spade bit</a>.  I used the bit to obviously drill the hole for the 3.5mm jack to fit but at the same time I shaved away some of the plastic around the hole to create a recessed area where the nut on the socket can hold it in place without using glue.  This is so I can remove the whole mess of solder, glue, and wires from the case when I need to make modifications.  I placed the port at <a href="http://www.jedge.com/cpg15x/displayimage.php?album=4&amp;pid=64#top_display_media" target="_blank">the top</a>of the Outlet Valet.Here is an <a href="http://www.jedge.com/cpg15x/displayimage.php?album=5&amp;pid=72#top_display_media">image of the socket </a>and jack and which wire gets soldered where.</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="20%" valign="top">
<p><div class="wp-caption aligncenter" style="width: 137px"><a href="http://www.jedge.com/cpg15x/displayimage.php?album=5&amp;pid=65#top_display_media"><img style="border: 1px solid black;" title="Modifying USB Hub" src="http://jedge.com/cpg15x/albums/tplink_powerpwn/Descriptive%20Photos/thumb_INLAND_HUB_description.png" alt="" width="127" height="127" /></a><p class="wp-caption-text">Modifying USB Hub</p></div></td>
<td valign="top">The main modification needed to be completed for the USB hub is the removal of the case and the rubber around with wires and USB ports. The image details what changes are made. The original solder points on the hub circuit board are not modified though you may want to touch them up or add more glue. Looking at the shoddy work I&#8217;m surprised the hub functions properly. Three of the USB ends are stripped of all rubber and the wires cut. One port has most of the casing left on the wires to keep it neat. Click on the image to the left see where each port is soldered. The circuit board is hot glued to the bottom of the wr703n board.&nbsp;</p>
<p>&nbsp;</p>
<p>Here is what it looks like <a href="http://www.jedge.com/cpg15x/displayimage.php?album=5&amp;pid=71#top_display_media" target="_blank">completed</a>.</td>
</tr>
</tbody>
</table>
<h1 style="text-align: center;"> Final Product</h1>
<p style="text-align: center;"><img class="aligncenter" title="Final Product" src="http://www.jedge.com/cpg15x/albums/tplink_powerpwn/normal_2012-11-18_17_12_26.jpg" alt="" width="359" height="479" /></p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="20%" valign="top"></td>
<td valign="top"></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="20%" valign="top"></td>
<td valign="top"></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/11/tp-link-wr703n-custom-pwn-plug/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Mobile Devices and Airbase-ng Attacks</title>
		<link>http://www.jedge.com/wordpress/2012/10/mobile-devices-and-airbase-ng-attacks/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mobile-devices-and-airbase-ng-attacks</link>
		<comments>http://www.jedge.com/wordpress/2012/10/mobile-devices-and-airbase-ng-attacks/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 00:32:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FYI]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=604</guid>
		<description><![CDATA[I don&#8217;t feel that this issue gets enough coverage so I am adding my voice to the mix in the hopes that someday the makers of our popular mobile operating systems will FIX THE ISSUE!  What I&#8217;m going to discuss is a wireless association vulnerability that was first discovered by Max Moser (site here and his full <a href='http://www.jedge.com/wordpress/2012/10/mobile-devices-and-airbase-ng-attacks/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>I don&#8217;t feel that this issue gets enough coverage so I am adding my voice to the mix in the hopes that someday the makers of our popular mobile operating systems will FIX THE ISSUE!  What I&#8217;m going to discuss is a wireless association vulnerability that was first discovered by Max Moser (site<a title="All Your Wireless Belongs to Us" href="http://wifi0wn.wordpress.com/wifi-tools-software/" target="_blank"> here</a> and his <a href="http://archives.neohapsis.com/archives/fulldisclosure/2004-04/0155.html" target="_blank">full disclosure</a>) way back in 2004 for Windows XP.  Using airbase-ng (part of the <a href="http://aircrack-ng.org/" target="_blank">Aircrack-ng</a> suite of tools) this same attack works against the latest versions of iOS5 and iOS6 (iPhone and iPad), Blackberry OS, and Android.  Apple&#8217;s iOS, from AT&amp;T Wireless, even comes with a helpful default profile so you can attack a device right out of the box (see <a href="https://twitter.com/hdmoore/status/250641419096707072" target="_blank">Tweet by HD Moore</a>).  The only mobile OS that does not have this issue is Windows 8 on the new Nokia phones.  I don&#8217;t know a soul that has one of these phones so I hung out in an AT&amp;T Wireless store to conduct my testing.  Those Microsoft devices will not associate with any Airbase-ng APs that mimic APs from the device&#8217;s probe packets.  Some individuals have tried to tell the world about this issue.  A great <a title="Open Unsecure Wifi And Why Its Not Safe" href="http://youtu.be/qlkyolCd4FM" target="_blank">Youtube video</a> was created by Jeffery Wilkins demonstrating this issue.  Vincent Costagliola at <a href="http://patctech.com/" target="_blank">patctech.com</a> wrote this <a href="http://www.patc.com/weeklyarticles/print/2012_srt_reveal.pdf" target="_blank">article</a> mentioning the same issue.</p>
<p>My testing has shown that an iPhone will connect to airbase-ng even if it is already connected to a WPA encrypted access point.  Just as described by Max Moser in 2004.</p>
<p><iframe width="420" height="315" src="http://www.youtube.com/embed/A0Tlf67M84Q" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/10/mobile-devices-and-airbase-ng-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Custom Power Pwn</title>
		<link>http://www.jedge.com/wordpress/2012/08/my-custom-power-pwn/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-custom-power-pwn</link>
		<comments>http://www.jedge.com/wordpress/2012/08/my-custom-power-pwn/#comments</comments>
		<pubDate>Sat, 04 Aug 2012 16:52:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware Hacking]]></category>
		<category><![CDATA[Penetration Testing]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=596</guid>
		<description><![CDATA[See the Security Bsides Atlanta talk (when it gets posted) at http://www.securitybsides.com/w/page/58266249/BSidesATL-2012.  Powerpoint slides can be found here. The people over at PwnieExpress are coming out with a neat device called the Power Pwn.  This device follows up on the Pwn Plug and the PwnPhone (Nokia N900). With my experience as a penetration tester and junior <a href='http://www.jedge.com/wordpress/2012/08/my-custom-power-pwn/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft" style="margin: 5px;" title="Custom Power Pwn" src="http://www.jedge.com/cpg15x/albums/APC%20Power%20Pwn/normal_2012-08-03-13_02_36.jpg" alt="" width="251" height="188" /></p>
<p>See the Security Bsides Atlanta talk (when it gets posted) at <a href="http://www.securitybsides.com/w/page/58266249/BSidesATL-2012">http://www.securitybsides.com/w/page/58266249/BSidesATL-2012</a>.  Powerpoint slides can be found <a title="Custom Power Pwn" href="http://www.jedge.com/docs/Custom.Power.Pwn.pptx" target="_blank">here</a>.</p>
<p>The people over at PwnieExpress are coming out with a neat device called the <a title="Pwnie Express Power Pwn" href="http://pwnieexpress.com/products/power-pwn" target="_blank">Power Pwn</a>.  This device follows up on the <a title="PwnieExpress Pwn Plug" href="http://pwnieexpress.com/products/wireless-plug" target="_blank">Pwn Plug</a> and the <a title="PwnieExpress Nokia N900 PwnPhone" href="http://pwnieexpress.com/products/pwnphone" target="_blank">PwnPhone</a> (Nokia N900). With my experience as a penetration tester and junior hardware hacker I&#8217;ve been working on my own &#8220;pwn&#8221; hardware. I have a <a title="Wireless Auditing - Nokia N810" href="http://www.jedge.com/wordpress/2011/09/nokia-n810-wireless-auditing/" target="_blank">Nokia N810</a> as well as an Alix 6f2 (<a title="PC Engines" href="http://pcengines.ch/" target="_blank">PCEngines.ch</a>). I purchased an APC BE650R Battery Backup Power Strip off of <a href="http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&amp;_nkw=APC+BE650R&amp;_sacat=0" target="_blank">Ebay</a> and gutted the inside to fit the Alix board. I integrated the Alix connectors for the serial, ethernet, and external antenna connectors with the existing APC coax, rj45, and rj50 ports. The setup has an internal Xpal portable netbook charger that can run the Alix board for over 4 hours.  However, the main power to the board is integrated with the APC power strip.  Plugging in the APC will run power to the Xpal battery which in turn powers the Alix.  Four of the eight plugs on the APC are also functional.  I created a simple DB9 to RJ45 adapter for the serial connection so I can properly configure the device before use.  Since the Xpal battery powers it for 4 hours I have plenty of time to get it configured and to its final pwnage destination.  I didn&#8217;t take any photos of the gutting of the APC but it involved a lot of dremel, plastic nipper, and xacto knife work.  I do have <a href="http://www.jedge.com/cpg15x/thumbnails.php?album=3" target="_blank">photos</a> of everything fitting together.  The only missing item is the internal RP-SMA to female F pigtails.  But as you can see in the photos you can fit some rubber duck antennas inside the APC with no problems.  Also, the best part about the Alix 6f2 is that you can add a mini-pci express GSM card for out of band cellular access to the device.  You don&#8217;t see the card installed on the Alix in the pictures.  I currently have the card in a <a href="http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&amp;_nkw=Mini+PCI-E+WWAN+TO+USB+Adapter+With+Sim+Card+Slot&amp;_sacat=0" target="_blank">Mini PCI-E WWAN to USB Adapter</a> for testing.</p>
<p>The software I run on the PCEngines Alix is Debian-for-Alix where I <a title="Debian for Alix Penetration Testing Edition" href="http://code.google.com/p/debian-for-alix/wiki/PenetrationTestingEdition">contributed</a> to the wiki with instructions on how to <a title="Installing Pentest Software on Alix" href="http://code.google.com/p/debian-for-alix/wiki/PentestSoftwareInstallation">install all the tools</a>.<br />
<span id="more-596"></span><br />
Below are some images with arrows pointing to key features of my device.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.jedge.com/cpg15x/albums/APC%20Power%20Pwn/APC_Power_Pwn_1.jpg" alt="" width="860" height="645" /></p>
<p><img class="aligncenter" src="http://www.jedge.com/cpg15x/albums/APC%20Power%20Pwn/APC_Power_Pwn_2.jpg" alt="" width="860" height="645" /></p>
<p>&nbsp;</p>
<p style="text-align: center;"><strong>Updated Images / Additional Work</strong></p>
<p><img class="aligncenter" src="http://www.jedge.com/images/new1.jpg" alt="" width="600" height="450" /></p>
<p><img class="aligncenter" src="http://www.jedge.com/images/new2.jpg" alt="" width="600" height="450" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/08/my-custom-power-pwn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maemo &#8211; Diablo &#8211; PHP5 &#8211; mime-support error</title>
		<link>http://www.jedge.com/wordpress/2012/07/maemo-diablo-php5-mime-support-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=maemo-diablo-php5-mime-support-error</link>
		<comments>http://www.jedge.com/wordpress/2012/07/maemo-diablo-php5-mime-support-error/#comments</comments>
		<pubDate>Thu, 12 Jul 2012 13:49:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=590</guid>
		<description><![CDATA[I receive this error when trying to install PHP on my Nokia n810 device. php5-cli: Depends: mime-support but it is not installable. This is with a fresh flash and I only add the Diable Extras-Devel from repository.maemo.org so I have access to the PHP packages. I have no idea what is going on but I&#8217;m <a href='http://www.jedge.com/wordpress/2012/07/maemo-diablo-php5-mime-support-error/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>I receive this error when trying to install PHP on my Nokia n810 device.  php5-cli: Depends: mime-support but it is not installable.  This is with a fresh flash and I only add the Diable Extras-Devel from repository.maemo.org so I have access to the PHP packages.  I have no idea what is going on but I&#8217;m creating this post in case anybody else comes across a damn mime-support issue.<br />
<span id="more-590"></span><br />
My hildon-application-manager.list is as follows:</p>
<p>deb http://catalogue.tableteer.nokia.com/certified/ diablo user<br />
deb http://catalogue.tableteer.nokia.com/non-certified/ diablo user<br />
deb http://catalogue.tableteer.nokia.com/updates/diablo-2/ ./<br />
deb http://repository.maemo.org/extras/ diablo free non-free<br />
deb http://repository.maemo.org/extras-devel/ diablo free non-free</p>
<p>Here is the full error when I try to install PHP from the command-line.</p>
<p><pre><code>Nokia-N810-43-7:~# apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
&nbsp;&nbsp;php5-cli: Depends: mime-support but it is not installable
E: Broken packages</code></pre></p>
<p>Then I try this&#8230;</p>
<p><pre><code>Nokia-N810-43-7:~# apt-get install mime-support
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mime-support is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package mime-support has no installation candidate</code></pre></p>
<p>To solve this issue I manually downloaded the mime-support deb package from repository.maemo.org/pool/.</p>
<p><pre><code>Nokia-N810-43-7:~# wget http://repository.maemo.org/pool/diablo/free/m/mime-supp ort/mime-support_3.28-1_all.deb
--09:40:41--&nbsp;&nbsp;http://repository.maemo.org/pool/diablo/free/m/mime-support/mime-s upport_3.28-1_all.deb
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; `mime-support_3.28-1_all.deb&#039;
Resolving repository.maemo.org... 23.66.230.19, 23.66.230.24
Connecting to repository.maemo.org|23.66.230.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28,804 (28K) [application/x-debian-package]

100%[====================================&gt;] 28,804&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;95.23K/s

09:40:41 (95.00 KB/s) - `mime-support_3.28-1_all.deb&#039; saved [28804/28804]

Nokia-N810-43-7:~# dpkg -i mime-support_3.28-1_all.deb
Selecting previously deselected package mime-support.
(Reading database ... 16605 files and directories currently installed.)
Unpacking mime-support (from mime-support_3.28-1_all.deb) ...
Setting up mime-support (3.28-1) ...
Nokia-N810-43-7:~# apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
&nbsp;&nbsp;libmagic1 libpcre3 php5-common
Suggested packages:
&nbsp;&nbsp;file php-pear
The following NEW packages will be installed:
&nbsp;&nbsp;libmagic1 libpcre3 php5-cli php5-common
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 3097kB of archives.
After unpacking 7594kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
&nbsp;&nbsp;libpcre3 libmagic1 php5-common php5-cli
Install these packages without verification [y/N]? y
Get:1 http://repository.maemo.org diablo/free libpcre3 6.7-1osso1 [164kB]
Get:2 http://repository.maemo.org diablo/free libmagic1 4.12-1osso [232kB]
Get:3 http://repository.maemo.org diablo/free php5-common 5.2.6-3maemo4 [219kB]
Get:4 http://repository.maemo.org diablo/free php5-cli 5.2.6-3maemo4 [2481kB]
Fetched 3097kB in 9s (325kB/s)
Selecting previously deselected package libpcre3.
(Reading database ... 16631 files and directories currently installed.)
Unpacking libpcre3 (from .../libpcre3_6.7-1osso1_armel.deb) ...
Selecting previously deselected package libmagic1.
Unpacking libmagic1 (from .../libmagic1_4.12-1osso_armel.deb) ...
Selecting previously deselected package php5-common.
Unpacking php5-common (from .../php5-common_5.2.6-3maemo4_armel.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.2.6-3maemo4_armel.deb) ...
Setting up libpcre3 (6.7-1osso1) ...
Setting up libmagic1 (4.12-1osso) ...
Setting up php5-common (5.2.6-3maemo4) ...
Setting up php5-cli (5.2.6-3maemo4) ...</code></pre></p>
<p>All I want to do is parse some damn XML files.  I gave up on getting Perl to work and I don&#8217;t know any Python.  PHP from the command-line with SimpleXML just works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/07/maemo-diablo-php5-mime-support-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>John the Ripper w/ Jumbo Patch &#8211; now with GPU support</title>
		<link>http://www.jedge.com/wordpress/2012/07/john-the-ripper-w-jumbo-patch-now-with-gpu-support/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=john-the-ripper-w-jumbo-patch-now-with-gpu-support</link>
		<comments>http://www.jedge.com/wordpress/2012/07/john-the-ripper-w-jumbo-patch-now-with-gpu-support/#comments</comments>
		<pubDate>Fri, 06 Jul 2012 02:50:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Compiling]]></category>
		<category><![CDATA[Configuration Tutorials]]></category>
		<category><![CDATA[Installing & Using Tools]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[John the Ripper]]></category>
		<category><![CDATA[JtR]]></category>
		<category><![CDATA[Jumbo Patch]]></category>
		<category><![CDATA[Openwall]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=538</guid>
		<description><![CDATA[JtR 1.7.9 with Jumbo 6 now offers GPU support for computationally intensive (slow-hash) password encryptions like WPA-PSK.  This POST will detail compiling JtR with OpenCL support.  I have an really old ATI Radeon HD card but it works with OpenCL so here goes.  This compile works for Ubuntu LTS 12.04 and 10.04.  You should read <a href='http://www.jedge.com/wordpress/2012/07/john-the-ripper-w-jumbo-patch-now-with-gpu-support/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>JtR 1.7.9 with Jumbo 6 now offers GPU support for computationally intensive (slow-hash) password encryptions like WPA-PSK.  This POST will detail compiling JtR with OpenCL support.  I have an really old ATI Radeon HD card but it works with OpenCL so here goes.  This compile works for Ubuntu LTS 12.04 and 10.04.  You should read the doc file <a title="John the Ripper OpenCL Compile Help" href="http://www.jedge.com/docs/README.opencl" target="_blank">README.opencl</a> for notes for more info on how to compile JtR with OpenCL support.</p>
<p><span id="more-538"></span></p>
<p>For additional information you can read the JtR <a title="John the Ripper Documentation" href="http://www.openwall.com/john/doc/" target="_blank">documentation</a> and <a title="John the Ripper Wiki" href="http://openwall.info/wiki/john" target="_blank">wiki</a> from Openwall.</p>
<p>OpenSSL is needed. This can be installed through your package manager or may already be installed. Remember to install the development package (libssl-dev or libssl-devel). I like the latest and greated so instructions on download and compile are included below.</p>
<p>Download and install the latest OpenSSL</p>
<p><pre><code>$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
$ tar zxf openssl-1.0.1c.tar.gz
$ cd openssl-1.0.1c
$ ./config --openssldir=/usr/local
$ make
$ sudo make install</code></pre></p>
<p>Identify your Graphics Card<br />
<pre><code>$ sudo lshw -C video
</code></pre></p>
<p>Download the AMD/ATI drivers (<a title="Download Graphics Drivers" href="http://support.amd.com/us/gpudownload/Pages/index.aspx" target="_blank">http://support.amd.com/us/gpudownload/Pages/index.aspx</a>)<br />
NOTE: you may have to uninstall the old driver or use the &#8211;force option.<br />
<pre><code>$ wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run
$ sudo sh amd-driver-installer-12-4-x86.x86_64.run</code></pre></p>
<p>I selected option 1. Install Driver 8.961 on X.Org 6.9 or later</p>
<p>Download the AMD SDK for OpenCL (http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx)<br />
<pre><code>$ wget http://developer.amd.com/Downloads/AMD-APP-SDK-v2.7-lnx32.tgz
$ tar zxf AMD-APP-SDK-v2.7-lnx32.tgz
$ sudo ./Install-AMD-APP.sh</code></pre></p>
<p>32-bit Operating System Found&#8230;<br />
Starting Installation of AMD APP&#8230;.<br />
SDK package name is :AMD-APP-SDK-v2.7-RC-lnx32.tgz<br />
Current directory path is : /home/edge/source<br />
Untar command executed succesfully, The SDK package available<br />
Untar command executed succesfully, The ICD package available<br />
Copying files to /opt/AMDAPP/ &#8230;<br />
SDK files copied successfully at /opt/AMDAPP/<br />
AMD Catalyst OpenCL Runtime is available hence skiping OpenCL CPU Runtime Installation Installation<br />
ln: creating symbolic link `/usr/lib/libOpenCL.so&#8217;: File exists<br />
Updating Environment vairables&#8230;<br />
32-bit path is :/opt/AMDAPP/lib/x86<br />
Environment vairables updated successfully<br />
/sbin/ldconfig.real: Can&#8217;t stat /lib/i486-linux-gnu: No such file or directory<br />
/sbin/ldconfig.real: Can&#8217;t stat /lib64: No such file or directory<br />
AMD APP installation Completed<br />
&gt;&gt; Reboot required to reflect the changes<br />
&gt;&gt; Please ignore the ldconfig errors, Expected behaviour<br />
&gt;&gt; Please refer the &#8216;AMDAPPlog file&#8217; in the same directory<br />
&gt;&gt; Refer the README.txt in the same directory for more info</p>
<p>Now with the prerequisites for compiling JtR with OpenCL support.</p>
<p><pre><code>$ wget http://www.openwall.com/john/g/john-1.7.9-jumbo-6.tar.gz
$ tar zxf john-1.7.9-jumbo-6.tar.gz
$ cd john-1.7.9-jumbo-6/src
$ make linux-x86-opencl (if you manually obtained the header files)
$ make -I/opt/AMDAPP/include/CL linux-x86-opencl</code></pre></p>
<p>JtR comes with some Perl scripts. You will need the following packages for the scripts to work.</p>
<p><pre><code>$ sudo apt-get install libnet-ldap-perl libcrypt-des-perl
For some reason libdigest-sha1-perl doesn&#039;t get identified by the sha-test.pl script.
$ wget http://search.cpan.org/CPAN/authors/id/U/UW/UWEH/SHA-1.2.tar.gz
$ tar zxf SHA-1.2.tar.gz
$ cd SHA-1.2
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for SHA
Warning: overwriting endian.h
Do you want to use the original SHA or the new standard SHA-1?
Enter 0 for the original or 1 for the new standard. [1]
$ make
$ sudo make install</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/07/john-the-ripper-w-jumbo-patch-now-with-gpu-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WRT54GL is Not Dead</title>
		<link>http://www.jedge.com/wordpress/2012/04/wrt54gl-is-not-dead/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wrt54gl-is-not-dead</link>
		<comments>http://www.jedge.com/wordpress/2012/04/wrt54gl-is-not-dead/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 16:27:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware Hacking]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=530</guid>
		<description><![CDATA[Well the WRT54GL is not dead for me. Due to it&#8217;s popularity this venerable wireless router has been documented across the Internet on how to software and hardware hack it. Tinkering with this devices is a great way to learn about embedded Linux, cross-compilation, soldering, and serial communication. I continue to search for new ways <a href='http://www.jedge.com/wordpress/2012/04/wrt54gl-is-not-dead/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft" style="margin: 5px;" title="Linksys WRT54GL 1.1" src="http://www.jedge.com/images/generic_wrt54g_image.jpg" alt="" width="134" height="134" />Well the WRT54GL is not dead for me. Due to it&#8217;s popularity this venerable wireless router has been documented across the Internet on how to software and hardware hack it. Tinkering with this devices is a great way to learn about embedded Linux, cross-compilation, soldering, and serial communication. I continue to search for new ways to play with this router (I plan on adding some USB ports once my 12v/5v power supply arrives!).  The reason I&#8217;m documenting my experiences is because I haven&#8217;t seen many tutorials where the device has a GPS module. I&#8217;ve seen some documentation on connecting a GPS device (Garmin) to a serial port. Mine goes the extra step and includes a module in the router for a nice compact wardriving box. I&#8217;m even able to set the date and time on the device after a GPS lock is obtained.  So I&#8217;m going to put together a tutorial on the GPS module and the version of Openwrt, Kismet, and GPSd I used to allow this device to be a self contained wardriving box.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/04/wrt54gl-is-not-dead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling Wireless Tools for Nokia N810</title>
		<link>http://www.jedge.com/wordpress/2012/04/compiling-wireless-tools-for-nokia-n810-post/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compiling-wireless-tools-for-nokia-n810-post</link>
		<comments>http://www.jedge.com/wordpress/2012/04/compiling-wireless-tools-for-nokia-n810-post/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 00:51:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Compiling]]></category>
		<category><![CDATA[Configuration Tutorials]]></category>
		<category><![CDATA[Installing & Using Tools]]></category>
		<category><![CDATA[aircrack-ng]]></category>
		<category><![CDATA[armel]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Cross-compile]]></category>
		<category><![CDATA[diablo]]></category>
		<category><![CDATA[kismet]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[n810]]></category>
		<category><![CDATA[n8x0]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[reaver]]></category>
		<category><![CDATA[scratchbox]]></category>
		<category><![CDATA[wireless tools]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=527</guid>
		<description><![CDATA[This tutorial will help you configure the Scratchbox environment to compile the latest svn of aircrack-ng, latest stable kismet, and reaver 1.4 for the Nokia n810. A lot of love is getting sent to the N900 but the n8x0 series of devices are still great for wireless testing. With this tutorial you will be not <a href='http://www.jedge.com/wordpress/2012/04/compiling-wireless-tools-for-nokia-n810-post/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>This tutorial will help you configure the Scratchbox environment to compile the latest svn of aircrack-ng, latest stable kismet, and reaver 1.4 for the Nokia n810.  A lot of love is getting sent to the N900 but the n8x0 series of devices are still great for wireless testing.  With this tutorial you will be not only to compile the software but create Debian packages for easy installation on your Nokia device.  Of important note were the errors I encountered while compiling aircrack-ng.  The error had not been documented on the Internet.  Trust me I Googled my heart out.  Everyones solution was update the linux kernel headers.  Well in this case that wasn’t possible.  I’m not a Linux programmer but I figured out how to edit the header file to make the changed needed to get Aircrack-ng to compile.<br />
<span id="more-527"></span></p>
<h2>Install and Configure Scratchbox for Diablo</h2>
<p>Visit <a href="http://maemovmware.garage.maemo.org/2nd_edition/" target="_blank">http://maemovmware.garage.maemo.org/2nd_edition/</a> and download the Maemo SDK Virtual Image.  It will bring you <a href="http://tablets-dev.nokia.com/maemo-dev-env-downloads.php" target="_blank">http://tablets-dev.nokia.com/maemo-dev-env-downloads.php</a> to download the virtual image.  As of this tutorial the image for Desktop Ubuntu Lucid Lynx is still supported by Ubuntu.  It is an Long Term Service release that will be good until 2013.</p>
<p>Download :  Maemo_Ubuntu_Lucid_Desktop_SDK_Virtual_Image_Final.7z </p>
<p>Extract the image from the compressed 7z archive and boot it with your preferred Virtual Emulator (VMWare, VirtualBox, etc).  How to use Virtual Image software is beyond the scope of this document.  I used Virtualbox (<a href="http://www.virtualbox.org/manual/ch01.html" target="_blank">http://www.virtualbox.org/manual/ch01.html</a>) and make some references to it throughout the tutorial.</p>
<p>First thing you should do after you boot your image is update the software and install the Virtual Emulator software/drivers.  Username and password are maemo/maemo.  For example, I use VirtualBox and I will install the Guest Additions.  Note, install the latest guest additions and not what comes with the SDK image.</p>
<p>To update the OS open a terminal session and preform these two commands.<br />
<pre><code>$sudo apt-get update
$sudo apt-get upgrade</code></pre></p>
<p>In the maemo user home directory Desktop folder are the scripts and programs to install and configure the cross-compilation platform for Maemo 4 OS2008 Diablo.  The SDK comes preconfigured with Maemo 5 Fremantle OS environment.  That environment is for the Nokia N900 Internet phone.</p>
<p>(NOTE:  I prefer to SSH into the image from my Windows 7 host computer using Putty.  This makes it easier to copy and paste commands in this tutorial)</p>
<p><pre><code>
$cd ~/Desktop/DiabloSDKInstall
$sudo ./maemo-scratchbox-install_4.1.2.sh -s /opt/scratchbox
$./maemo-sdk-install_4.1.2.sh -d -s /opt/scratchbox

.
.
.
.
.
This offer is valid for a period of three (3) years.

The exact license terms of GPL, LGPL and said certain other licenses, as well
as the required copyright and other notices, permissions and acknowledgements
are reproduced in and delivered to you as part of the referred source code.

--------------------------------------------------------------------------------

Press Enter to accept (Crtl+C to cancel).

The process downloads and installs a lot of files.&nbsp;&nbsp;When it is finished you will see

Installation was successful!
----------------------------

IMPORTANT! Please read this.

You now have the maemo 4.1.2 diablo installed on your computer.
You can now start your maemo SDK session with /opt/scratchbox/login and
then select your target with &#039;sb-conf select DIABLO_ARMEL&#039; for the
armel target or &#039;sb-conf select DIABLO_X86&#039; for the i386 target.

If you have any problems with targets&#039; package databases, you can try
running &#039;fakeroot apt-get -f install&#039; on your scratchbox target.
This command will try to fix any problems with the package database.

Happy hacking!
</code></pre><br />
Install the Maemo SDK Nokia Binaries.<br />
<pre><code>
$./maemo-sdk-nokia-binaries_4.1.2.sh

.
.
.
Do you accept all the terms of the preceding License Agreement?
Please reply with &#039;I accept&#039; if you do.
&gt; I accept
Thank you.

Extracting files...

Nokia binaries repository has now been extracted to a directory under
your scratchbox home path. Add the following line to maemo 4.1.2 diablo
scratchbox targets&#039; /etc/apt/sources.list files to make the repository
visible to Debian apt tools:

deb file:/home/maemo/maemo-sdk-nokia-binaries_4.1.2 diablo explicit

Run &#039;apt-get update&#039; inside scratchbox to read package index files.

NOTE:&nbsp;&nbsp;This line goes in the sources.list file when you are logged into scratchbox

$sudo apt-get install vim
$sudo /opt/scratchbox/sbin/sbox_adduser maemo yes
The user `maemo&#039; is already a member of `sbox&#039;.
Scratchbox user account for user maemo added
$sudo /opt/scratchbox/sbin/sbox_ctl start
$ /opt/scratchbox/login
Welcome to Scratchbox, the cross-compilation toolkit!

Use &#039;sb-menu&#039; to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-DIABLO_ARMEL: ~] &gt;vim /etc/apt/sources.list
Add the new repository to the APT sources.list
[sbox-DIABLO_ARMEL: ~] &gt;apt-get update
[sbox-DIABLO_ARMEL: ~] &gt;mkdir source
[sbox-DIABLO_ARMEL: ~/source] &gt;exit
$sudo apt-get install subversion libapr1 libaprutil1 libsvn1 vim
</code></pre></p>
<h2>Compile and Package Aircrack-ng</h2>
<p>These steps will download the latest version of Aircrack-ng and modify the Maemo Linux header files so the software will compile.<br />
<pre><code>
$cd /opt/scratchbox/users/maemo/home/maemo/source
$svn co&nbsp;&nbsp;http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng-4.20.2012.svn
$ /opt/scratchbox/login
[sbox-DIABLO_ARMEL: ~] &gt;cd source/aircrack-ng-4.20.2012.svn
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt;make
</code></pre><br />
Click <a href="http://www.jedge.com/docs/aircrack.svn.n810.scratchbox.compile.error.txt" target="_blank">here</a> for compile output including the error messages</p>
<p>The compilation first breaks when trying to compile aireplay-ng.  The beginning of the error is this:<br />
<kbd><br />
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude   -c -o aireplay-ng.o aireplay-ng.c<br />
In file included from /usr/include/linux/cpumask.h:86,<br />
                 from /usr/include/linux/interrupt.h:10,<br />
                 from /usr/include/linux/rtc.h:14,<br />
                 from aireplay-ng.c:39:<br />
/usr/include/linux/bitmap.h: In function `bitmap_zero':<br />
</kbd><br />
After some research, okay, A LOT of research (Googling), it appears that #include
<linux/interrupt.h>  should not be in rtc.h.  I&#8217;ve found references to a kernel bug on the Internet.  I am specifically creating this tutorial because this error alone wasted a lot of my time and I want to help someone else down the road.<br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt;vim /usr/include/linux/rtc.h
</code></pre><br />
Line 14 goes from this <kbd>#include  &lt;linux/interrupt.h &gt;</kbd> to this <kbd>/*#include  &lt;linux/interrupt.h &gt;*/</kbd><br />
Save the file and try to compile again.<br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt;make
</code></pre><br />
SUCCESS!!!  Okay, so you know it compiles.  Best thing to do is make a Debian package so we are going to &#8220;start over&#8221; compiling aircrack-ng<br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt;make clean
</code></pre><br />
NOTE:  If you like to have your aircrack-ng binaries in /usr/(s)bin instead of /usr/local/(s)bin then modify the common.mak file.  Line 73, set prefix to /usr (or whatever you prefer).<br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt;cd ..
[sbox-DIABLO_ARMEL: ~/source] &gt;tar czvf aircrack-ng-4.20.2012.svn.tar.gz aircrack-ng-4.20.2012.svn/
[sbox-DIABLO_ARMEL: ~/source] &gt;cd aircrack-ng-4.20.2012.svn
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt; dh_make -c gpl -e <span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=01te_eQkmn7gU-yINoV7CBEg==&amp;c=_dzlzTQeoIseLabA2uSRIIIr1w4OXvMW2Jzn7ZYGpaY=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01te_eQkmn7gU-yINoV7CBEg==&amp;c=_dzlzTQeoIseLabA2uSRIIIr1w4OXvMW2Jzn7ZYGpaY=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Click here to reveal this address">HIDDEN EMAIL</a></span> -m -f ../aircrack-ng-4.20.2012.svn.tar.gz
Maintainer name : unknown
Email-Address&nbsp;&nbsp; : <span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=01te_eQkmn7gU-yINoV7CBEg==&amp;c=_dzlzTQeoIseLabA2uSRIIIr1w4OXvMW2Jzn7ZYGpaY=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01te_eQkmn7gU-yINoV7CBEg==&amp;c=_dzlzTQeoIseLabA2uSRIIIr1w4OXvMW2Jzn7ZYGpaY=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Click here to reveal this address">HIDDEN EMAIL</a></span>
Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: Fri, 20 Apr 2012 11:22:26 -0400
Package Name&nbsp;&nbsp;&nbsp;&nbsp;: aircrack-ng
Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 4.20.2012.svn
License&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : gpl
Type of Package : Multi-Binary
Hit &lt;enter&gt; to confirm:
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the aircrack-ng Makefiles install into $DESTDIR and not in / .
</code></pre><br />
You can modify the debian/control file to include more details about the utility and who you are (maintainer).<br />
You can also modify it so the share files are not created to reduce the amount of space that is taken up on your device.  </p>
<p>Add the following line below <kbd>install-arch:</kbd> (line 77) just above <kbd>dh_install -s</kbd> (line 87)<br />
<kbd>rm -Rf $(CURDIR)/debian/aircrack-ng/usr/share</kbd><br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/aircrack-ng-4.20.2012.svn] &gt;dpkg-buildpackage -rfakeroot -us -uc –B
</code></pre><br />
You now have an Aircrack-ng Debian package!</p>
<h2>Compile and Package Kismet</h2>
<p>Note:  The Maemo 4 kernel is too old for mac80211 or nl80211, even if you have libnl installed.  That is why the latest svn of Kismet will not work.  2011-03-R2 will probably be the latest version of Kismet that will work on the n810.<br />
<pre><code>
[sbox-DIABLO_ARMEL: ~] &gt; cd source
[sbox-DIABLO_ARMEL: ~/source] &gt; wget http://www.kismetwireless.net/code/kismet-2011-03-R2.tar.gz
[sbox-DIABLO_ARMEL: ~/source] &gt; tar zxvf kismet-2011-03-R2.tar.gz
[sbox-DIABLO_ARMEL: ~/source] &gt; cd kismet-2011-03-R2
[sbox-DIABLO_ARMEL: ~/source/kismet-2011-03-R2] &gt; dh_make -c gpl -e <span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=01te_eQkmn7gU-yINoV7CBEg==&amp;c=_dzlzTQeoIseLabA2uSRIIIr1w4OXvMW2Jzn7ZYGpaY=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01te_eQkmn7gU-yINoV7CBEg==&amp;c=_dzlzTQeoIseLabA2uSRIIIr1w4OXvMW2Jzn7ZYGpaY=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Click here to reveal this address">HIDDEN EMAIL</a></span> -m -f ../kismet-2011-03-R2.tar.gz
[sbox-DIABLO_ARMEL: ~/source/kismet-2011-03-R2] &gt;vim debian/rules
</code></pre><br />
edit the configure options so that the config files will be in /etc/kismet and the binary will be in /bin (see below).<br />
<kbd>./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr  --sysconfdir=/etc/kismet --bindir=/bin --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-suidgroup=users CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"</kbd><br />
Also add the following lines below <kbd>install-arch:</kbd> (line 86) just above <kbd>dh_install -s</kbd> (line 96)<br />
<kbd><br />
rm -Rf $(CURDIR)/debian/kismet/usr/share/man<br />
dh_install debian/manuf etc/<br />
dh_install conf/kismet.conf etc/kismet<br />
dh_install conf/kismet_drone.conf etc/kismet</kbd><br />
</kbd><br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/kismet-2011-03-R2] &gt;vim debian/dirs
</code></pre><br />
Add the directories <kbd>etc</kbd> and <kbd>etc/kismet</kbd> to the file<br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/kismet-2011-03-R2] &gt;vim conf/kismet.conf.in
</code></pre><br />
Uncomment logprefix and set it to the following (line 13)<br />
<kbd>logprefix=/media/mmc1</kbd><br />
add the ncsource line that works with the n810 (below line 31)<br />
<kbd>ncsource=wlan0:type=nokia810,fcs=true,validatefcs=true</kbd><br />
<pre><code>
[sbox-DIABLO_ARMEL: ~/source/kismet-2011-03-R2] &gt; wget –cd -N -P debian http://anonsvn.wireshark.org/wireshark/trunk/manuf
[sbox-DIABLO_ARMEL: ~/source/kismet-2011-03-R2] &gt; dpkg-buildpackage -rfakeroot -us -uc -B
</code></pre><br />
After everything is done you will bind the deb packages in the source folder</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/04/compiling-wireless-tools-for-nokia-n810-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parse Kismet NETXML for Aireplay-ng</title>
		<link>http://www.jedge.com/wordpress/2012/04/parse-kismet-netxml-for-aireplay-ng/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=parse-kismet-netxml-for-aireplay-ng</link>
		<comments>http://www.jedge.com/wordpress/2012/04/parse-kismet-netxml-for-aireplay-ng/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 18:49:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[aircrack-ng]]></category>
		<category><![CDATA[kismet]]></category>
		<category><![CDATA[netxml]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=496</guid>
		<description><![CDATA[This post deals with gathering the information you need to use aircrack-ng to capture a WPA/WPA2 handshake for offline bruteforce attacks.  When running aireplay-ng to send out de-authentication packets you need the MAC address of the Access Point and a Client that is associated with it.  The way I would collect the information is run <a href='http://www.jedge.com/wordpress/2012/04/parse-kismet-netxml-for-aireplay-ng/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>This post deals with gathering the information you need to use aircrack-ng to capture a WPA/WPA2 handshake for offline bruteforce attacks.  When running aireplay-ng to send out de-authentication packets you need the MAC address of the Access Point and a Client that is associated with it.  The way I would collect the information is run <a title="Kismet Wireless" href="http://www.kismetwireless.net" target="_blank">Kismet</a>.  With the <a title="Kismet Old" href="http://kismetwireless.net/documentation.shtml#old" target="_blank">older version</a> of Kismet I would monitor the client (panel view) and select (copy/paste) the access point and client MAC.  With the <a title="Kismet Newcore" href="http://kismetwireless.net/documentation.shtml#readme" target="_blank">new version</a> of Kismet you cannot select a MAC address.  So I wrote myself a quick Perl script to parse the Kismet NETXML file to create output with the MAC addresses of AP and associated client pairs.<br />
<span id="more-496"></span><br />
<pre><code>
#!/usr/bin/perl
use XML::Simple;

$xs = XML::Simple-&gt;new( KeyAttr=&gt;[] );
$data = $xs-&gt;XMLin($ARGV[0]);

for $wn (@{$data-&gt;{&#039;wireless-network&#039;}}){
&nbsp;&nbsp;$channel = $wn-&gt;{&#039;channel&#039;};
&nbsp;&nbsp;$bssid = $wn-&gt;{&#039;BSSID&#039;};
&nbsp;&nbsp;
&nbsp;&nbsp;if(ref($wn-&gt;{&#039;SSID&#039;}-&gt;{&#039;encryption&#039;}) eq &#039;ARRAY&#039; &amp;&amp; $wn-&gt;{&#039;type&#039;} eq &#039;infrastructure&#039;)
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;if(ref($wn-&gt;{&#039;wireless-client&#039;}) eq &#039;ARRAY&#039;){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for $wc (@{$wn-&gt;{&#039;wireless-client&#039;}}){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($wc-&gt;{&#039;type&#039;} eq &#039;tods&#039;){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print $bssid . &quot; &quot; . $wc-&gt;{&#039;client-mac&#039;} . &quot;\n&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
}

</code></pre></p>
<p>I then use the file that was created in a simple Bash script to use aireplay-ng to knock all the clients offline.  Of course you have airodump-ng listening for the WPA/WPA2 handshakes.</p>
<p><pre><code>
#!/bin/bash
set -x
AIREPLAY=/usr/local/sbin/aireplay-ng
WIFACE=$1
FILE=$2

while read bssid clientmac
do
&nbsp;&nbsp;&nbsp;&nbsp;echo $x
&nbsp;&nbsp;&nbsp;&nbsp;$AIREPLAY -0 1 -a $bssid -c $clientmac --ignore-negative-one $WIFACE
done &lt; $FILE

</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/04/parse-kismet-netxml-for-aireplay-ng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling Nmap for Android</title>
		<link>http://www.jedge.com/wordpress/2012/02/compiling-nmap-for-android/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compiling-nmap-for-android</link>
		<comments>http://www.jedge.com/wordpress/2012/02/compiling-nmap-for-android/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 13:34:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Compiling]]></category>
		<category><![CDATA[Configuration Tutorials]]></category>
		<category><![CDATA[Installing & Using Tools]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Cross-compile]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[Penetration Testing]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=457</guid>
		<description><![CDATA[Compile Nmap for Android This tutorial will show you how to compile the latest version of Nmap for your Android device starting with a standard Ubuntu install. I will offer instructions on how to obtain two versions of compiler that I’ve had success compiling software for Android. I will show the Android NDK and the <a href='http://www.jedge.com/wordpress/2012/02/compiling-nmap-for-android/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p><strong>Compile Nmap for Android</strong></p>
<p>This tutorial will show you how to compile the latest version of Nmap for your Android device starting with a standard Ubuntu install. I will offer instructions on how to obtain two versions of compiler that I’ve had success compiling software for Android. I will show the Android NDK and the free Lite ARM compiler from Mentor (formally Code Sorcery). Hopefully you can take this instruction to try and compile other tools for Android.</p>
<p>The build environment and instructions come from an auditor with strong technical skills but somebody who is not a programmer or developer so hopefully my view point can help other individuals who are also not developers. I’ve built cross-compile environments for Openwrt, Nokia Maemo, Familiar Linux (iPaq) in the past but always from piecing together instructions from multiple Google queries and forum searches. I’m creating this document so it will be helpful for somebody&#8217;s future Google search.<br />
<span id="more-457"></span><br />
After the Ubuntu installation here are ALL the steps you can/should take to compile Nmap for Android. I like vim as my command-line editor. You can use which ever editor you prefer.</p>
<p>Here is a quick rundown of what is done. Everything (almost) is done from a terminal window.</p>
<ol>
<li>I update all Ubuntu software and install all files and tools to compile software on Ubuntu</li>
<li>I download the software required to compile for Android</li>
<li>Setup the environment to compile for Android</li>
<li>I create a source folder in the home directory for downloading and compiling the software.</li>
<li>Download the software, patch, configure, and compile.</li>
<li>Install Android SDK Platform Tools to copy files to your phone</li>
<li>Copy files to the phone and set PATH environment variable.</li>
</ol>
<p><pre><code>
$sudo -s
#apt-get update
#apt-get upgrade
#apt-get install vim build-essential
#cd /usr/local
#wget https://sourcery.mentor.com/sgpp/lite/arm/portal/package9728/public/arm-none-linux-gnueabi/arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
#tar jxf arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
#rm arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
#exit
$
</code></pre></p>
<p>Ubuntu is now current with the tools required to compile for Android. Now to create a simple shell script to setup the environment variables for cross compiling.<br />
<pre><code>
$mkdir ~/source
$cd ~/source
$vim setenv.sh
</code></pre><br />
Include the following information in setenv.sh. This script will set the environment to allow you to use the Android / ARM compiler instead of the native compiler.<br />
<span style="font-family: courier new; font-size: x-small;"><br />
#!/bin/bash<br />
export ac_cv_linux_vers=2<br />
export CC=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-gcc<br />
export GCC=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-gcc<br />
export CXX=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-g++<br />
export CPP=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-cpp<br />
export LD=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-ld<br />
export AR=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-ar<br />
export AS=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-as<br />
export NM=/usr/local/arm-2011.09/bin/arm-none-linux-gnueabi-nm<br />
export RANLIB=/usr/local/arm-2011.09/arm-none-linux-gnueabi/bin/ranlib<br />
export CC1=/usr/local/arm-2011.09/libexec/gcc/arm-none-linux-gnueabi/4.6.1/cc1<br />
export PATH=/usr/local/arm-2011.09/bin:/usr/local/arm-2011.09/:/usr/local/arm-2011.09/lib:/usr/local/arm-2011.09/libexec/gcc/arm-none-linux-gnueabi/4.6.1:$PATH<br />
export LDFLAGS=&#8221;-static&#8221;<br />
export CFLAGS=&#8221;-Os -s&#8221;<br />
</span><br />
<pre><code>$source setenv.sh
$wget http://nmap.org/dist/nmap-5.61TEST4.tar.bz2
$tar jxf nmap-5.61TEST4.tar.bz2
$cd nmap-5.61TEST4
</code></pre><br />
At this point you can configure and compile just Nmap. This will be without LUA library support (&#8211;without-liblua) which will disable all of the NSE scripts that have been created for Nmap as well as the additional command line tools ncat, ndiff, and nping.</p>
<p><pre><code>
$ ./configure --host=arm-linux-androideabi --without-zenmap --without-liblua --without-nping --without-ndiff --without-ncat --with-libpcap=internal --with-pcap=linux --enable-static --prefix=/data/opt
</code></pre><br />
If you want to include these scripts and tools you will have to modify the Nmap source code. If you try to compile with LUA support you will get this error.</p>
<p><span style="font-family: courier new; font-size: x-small;"><br />
strict-aliasing -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o llex.o llex.c<br />
llex.c: In function &#8216;trydecpoint&#8217;:<br />
llex.c:181: error: &#8216;struct lconv&#8217; has no member named &#8216;decimal_point&#8217;<br />
make[1]: *** [llex.o] Error 1<br />
make[1]: Leaving directory `/home/edge/source/nmap-5.51/liblua&#8217;<br />
make: *** [lua_build] Error 2<br />
</span></p>
<p>If you try to compile without LUA but want nping you get this error.<br />
<span style="font-family: courier new; font-size: x-small;"><br />
In file included from ArgParser.cc:94:<br />
nping.h:116:26: error: sysexits.h: No such file or directory<br />
make[3]: *** [ArgParser.o] Error 1<br />
make[3]: Leaving directory `/home/edge/source/nmap-5.51/nping&#8217;<br />
make[2]: *** [all] Error 2<br />
make[2]: Leaving directory `/home/edge/source/nmap-5.51/nping&#8217;<br />
make[1]: *** [build-nping] Error 2<br />
make[1]: Leaving directory `/home/edge/source/nmap-5.51&#8242;<br />
make: *** [all] Error 2<br />
</span><br />
Vlatko Kosturjak &lt;kost () linux hr&gt; comes to the rescue with his patch that allows you to compile with LUA and nping. I’m hosting the patch from my site just in case it is removed from the forums where he posted it.<br />
<pre><code>
$cd ~/source/ nmap-5.61TEST4
$mkdir android
$wget http://www.jedge.com/code/nmap.android.patches.diff -O android/ nmap.android.patches.diff
$patch -N -p1 &amp;lt; android/nmap.android.patches.diff
$ ./configure --host=arm-linux-androideabi --without-zenmap --with-liblua=included --with-libpcap=internal --with-pcap=linux --enable-static --prefix=/data/opt
$make
$sudo make install
</code></pre><br />
One my phone I created the directory opt in the data directory where I install all of my tools (/data/opt). That is why you see &#8211;prefix set to /data/opt. You can set it to whatever directory you want but remember I use this directory throughout my instructions. When you “install” nmap on your Linux host system it will be placed in /data/opt/bin and /data/opt/share. I mirror these same directories on my Android phone.</p>
<p>I believe you can run nmap on a phone that has not been rooted by sticking the files in /data/data/&lt;terminal_app_directory&gt;/bin but I will not be discussing how to accomplish that or what pitfalls exist. My phone is already rooted and yours should be too if you want to be successful with this tutorial. Rooting your phone is outside the scope of this tutorial.<br />
Install Android SDK and pushing files to the phone</p>
<p>One of the best ways to get files copied to your Android phone is to use the command ‘adb’ which is part of the platform-tools of the Android SDK. Below are the steps to obtain the SDK and use ‘adb’ to push the compiled nmap files to your phone.<br />
<pre><code>
$sudo –s
#apt-get install openjdk-7-jdk
#cd /usr/local
# wget http://dl.google.com/android/android-sdk_r16-linux.tgz
#tar android-sdk_r16-linux.tgz
</code></pre><br />
This next step is the only part where you need a GUI. Running /usr/local/android-sdk-linux/tools/android will open up a window where you need to select Android SDK Platform Tools, deselect Android 4.0.x, and click Install 1 package&#8230; (See Screenshot below).</p>
<p><pre><code>
#android-sdk-linux/tools/android &amp;amp;
</code></pre></p>
<div class="wp-caption alignnone" style="width: 467px"><img title="Android SDK Manager" src="http://www.jedge.com/images/android_sdk_manager.png" alt="" width="457" height="302" /><p class="wp-caption-text">Android SDK Manager</p></div>
<p><pre><code>
#export PATH=/usr/local/android-sdk-linux/platform-tools:$PATH
#adb devices
</code></pre><br />
Output examples<br />
<kbd><br />
List of devices attached<br />
???????????? offline<br />
</kbd><br />
Unplug your phone and plug it back in. You should see the following output.<br />
<kbd><br />
List of devices attached<br />
364247A74CE500FD device<br />
</kbd><br />
<pre><code>
#adb remount
#adb shell mkdir /data/opt
#adb chmod 755 /data/opt
#adb push /data/opt /data/opt
</code></pre><br />
This will push the bin and share directories created on Ubuntu that were installed when you ran ‘make install’ from the Nmap directory. They will be pushed to the corresponding directory on the phone.<br />
Running Nmap on your phone</p>
<p>I use BTEP (Better Terminal Emulator Pro) as my terminal of choice on my Android phone. The home directory is located in /data/data/com.magicandroidapps.bettertermpro/home<br />
I also use Root Explorer to traverse the file structure and open up files for editing.</p>
<p>All applications I compile for Android I place in my /data/opt directory and I modify .profile of BTEP to include the executable directory in my PATH (/data/opt/bin). I also include /data/opt/lib in LD_LIBRARY_PATH.</p>
<div class="wp-caption aligncenter" style="width: 490px"><img class=" " title="Root Explorer .profile access." src="http://www.jedge.com/images/screen_20120228_1132.png" alt="" width="480" height="288" /><p class="wp-caption-text">Use Root Explorer and traverse to the home directory of BTEP</p></div>
<div class="wp-caption aligncenter" style="width: 490px"><img class=" " title="Open .profile" src="http://www.jedge.com/images/screen_20120228_1132_2.png" alt="" width="480" height="288" /><p class="wp-caption-text">Long press .profile to bring up this menu and choose Open With</p></div>
<p>&nbsp;</p>
<div class="wp-caption aligncenter" style="width: 490px"><a href="Open .profile with the Text Editor"><img title="Open with Text Editor" src="http://www.jedge.com/images/screen_20120228_1132_3.png" alt="" width="480" height="288" /></a><p class="wp-caption-text">Open with Text Editor</p></div>
<p>&nbsp;</p>
<div class="wp-caption aligncenter" style="width: 490px"><img class=" " title="Edit .profile PATH and LD_LIBRARY_PATH" src="http://www.jedge.com/images/screen_20120228_1133.png" alt="" width="480" height="288" /><p class="wp-caption-text">Edit .profile PATH and LD_LIBRARY_PATH</p></div>
<p>&nbsp;</p>
<div class="wp-caption aligncenter" style="width: 490px"><img class=" " title="Hit your phones menu but and Save and Exit" src="http://www.jedge.com/images/screen_20120228_1133_2.png" alt="" width="480" height="288" /><p class="wp-caption-text">Hit your phones menu but and Save and Exit</p></div>
<p>To have your changes take effect you can close and reopen BTEP or run #source .profile from the command line.</p>
<p>You can now run Nmap from your Android phone. A program you successfully cross compiled yourself. These steps can be modified to compile other software for your phone. Your mileage will vary with other software. Especially since Android uses a stripped down libc called Bionic which will prevent software from compiling or running correctly.</p>
<p>&nbsp;</p>
<p>Special Thanks to Vlatko Kosturjak &lt;kost () linux hr&gt; <a href="http://k0st.wordpress.com/" target="_blank">http://k0st.wordpress.com/</a> who got nmap to compile with liblua support as well as nping to compile.</p>
<p><a href="https://secwiki.org/w/Nmap/Android" target="_blank">https://secwiki.org/w/Nmap/Android</a><br />
<a href="http://seclists.org/nmap-dev/2012/q1/135" target="_blank">http://seclists.org/nmap-dev/2012/q1/135</a><br />
<a href="http://seclists.org/nmap-dev/2010/q2/1021" target="_blank">http://seclists.org/nmap-dev/2010/q2/1021</a><br />
<a href="http://k0st.wordpress.com/2012/01/12/nmap-5-61test4-on-android/" target="_blank">http://k0st.wordpress.com/2012/01/12/nmap-5-61test4-on-android/</a></p>
<p>&nbsp;</p>
<p><a title="Compile Nmap for Android PDF Document" href="http://www.jedge.com/docs/Compile%20Nmap%20for%20Android.pdf"> (download PDF)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2012/02/compiling-nmap-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Penetration Testing Laptop Setup v4 (Ubuntu 11.4 Natty Narwhal)</title>
		<link>http://www.jedge.com/wordpress/2011/09/linux-penetration-testing-laptop-setup-v4-ubuntu-11-4-natty-narwhal/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-penetration-testing-laptop-setup-v4-ubuntu-11-4-natty-narwhal</link>
		<comments>http://www.jedge.com/wordpress/2011/09/linux-penetration-testing-laptop-setup-v4-ubuntu-11-4-natty-narwhal/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 03:46:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Configuration Tutorials]]></category>
		<category><![CDATA[Aircrack]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Hydra]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[John the Ripper]]></category>
		<category><![CDATA[JtR]]></category>
		<category><![CDATA[kismet]]></category>
		<category><![CDATA[Laptop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[Nessus]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[Penetration Testing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.jedge.com/wordpress/?p=440</guid>
		<description><![CDATA[I’m now providing an updated Linux Penetration Testing Laptop Setup document to help install popular and useful vulnerability assessment tools for the Linux operating system. You can go and obtain Backtrack but I feel that you will have more understanding of the tools and Linux in general if you install the tools yourself. You will <a href='http://www.jedge.com/wordpress/2011/09/linux-penetration-testing-laptop-setup-v4-ubuntu-11-4-natty-narwhal/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>I’m now providing an updated Linux Penetration Testing Laptop Setup document to help install popular and useful vulnerability assessment tools for the Linux operating system. You can go and obtain <a href="../category/configuration/www.backtrack-linux.org/">Backtrack</a> but I feel that you will have more understanding of the tools and Linux in general if you install the tools yourself. You will also have the most current version available. See <a title="Configuration Tutorials Page" href="http://www.jedge.com/wordpress/configuration-tutorials/">Configuration Tutorials</a> for the latest document.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jedge.com/wordpress/2011/09/linux-penetration-testing-laptop-setup-v4-ubuntu-11-4-natty-narwhal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
