<?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>Jkx@home &#187; gps</title>
	<atom:link href="http://www.larsen-b.com/tags/gps/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Wed, 20 May 2026 16:33:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Kismet + GPSDrive + MySQL + Python = Google Earth Wlan Map</title>
		<link>http://www.larsen-b.com/Article/212.html</link>
		<comments>http://www.larsen-b.com/Article/212.html#comments</comments>
		<pubDate>Thu, 18 Aug 2005 13:49:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[google earth]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Wifi]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Last week I decided to build a map of the wireless access point in the Town. It is not really easy to find the right tools, so I decided to write this little Howto. To archive this goal you need &#8230; <a href="http://www.larsen-b.com/Article/212.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Last week I decided to build a map of the wireless access point in the Town. It is not really easy to find the right tools, so I decided to write this little Howto.</p>
<p>To archive this goal you need severals tools:</p>
<div id="kismet" class="section">
<h1><a name="kismet">Kismet</a></h1>
<p>First install <a class="reference" href="http://www.kismetwireless.net/">Kismet</a>. You need a wireless card that support RFMon in monitor mode. I think <a class="reference" href="http://madwifi.sourceforge.net/">Madwifi</a> cards, and patched <a class="reference" href="http://www.kismetwireless.net/documentation.shtml">Orinoco</a> are the only ones that support this.</p>
<p>Launch Kismet, and now check for a given AP that kismet know the best level..</p>
<p>If everything is ok, edit the kismet config file and set <em>gps=try</em></p>
</div>
<div id="gpsdrive" class="section">
<h1><a name="gpsdrive">GPSDrive</a></h1>
<p>Download and install the latest CVS version of <a class="reference" href="#gpsdrive">GPSDrive</a> (I have some issues with the latest tgz and kismet). The next step is to have a GPS working with gpsd. Most GPS will work, I bought a cheap one with a USB cord on ebay.</p>
<p>Simply launch gpsd, and after gpsdrive. You should see the reception level in <a class="reference" href="#gpsdrive">GPSDrive</a>.</p>
<p><!-- GPSDrive: http://gpsdrive.kraftvoll.at/ --></p>
</div>
<div id="mysql" class="section">
<h1><a name="mysql">MySQL</a></h1>
<p>To use Kismet + GPSDrive, you need to have a MySQL database. In fact GPSDrive will ask to kismet the new APs, and dump this informations in a MySQL db. You can find the create.sql in <a class="reference" href="#gpsdrive">GPSDrive</a> sources.</p>
<pre class="literal-block">mysql -u root -p &lt; ./create.sql</pre>
<p>This will add a user : gast / gast</p>
</div>
<div id="first-try" class="section">
<h1><a name="first-try">First try</a></h1>
<p>Ok, now launch <a class="reference" href="#gpsdrive">GPSDrive</a> and set the &#8216;use SQL&#8217; (or edit the config file), and quit.</p>
<p>Now to start the whole stuff:</p>
<ul class="simple">
<li>Plug the wireless antenna (this is better for wardriving ;)</li>
<li>Plug the GPS</li>
<li>Launch gpsd (be carefull to have enought satellite in view)</li>
<li>Launch <a class="reference" href="http://www.kismetwireless.net/">Kismet</a> (it should tell you, it find the GPS&#8230;)</li>
<li>Launch <a class="reference" href="#gpsdrive">GPSDrive</a> (it should display a little kismet logo on bottom)</li>
<li>Now, you&#8217;re ready to go, walk down the street you should see new APs on the <a class="reference" href="#gpsdrive">GPSDrive</a> map.</li>
</ul>
<div class="image"><img src="http://www.brest-wireless.net/albums/Misc/full_gpsdrive.sized.jpg" alt="http://www.brest-wireless.net/albums/Misc/full_gpsdrive.sized.jpg" /></div>
</div>
<div id="after-the-trip-google-earth" class="section">
<h1><a name="after-the-trip-google-earth">After the trip: Google Earth</a></h1>
<p>Ok, now you have a lot of points in your database.. And GPSDrive have a little troubles to display them.. After a little time, i decided to install <a class="reference" href="http://earth.google.com/">Google Earth</a>, and look at the way to add new points on the map..</p>
<p>This, is quite simple, all i need to do is to extract data form the SQL, and build a xml file that contain all the points. I decided to write <a class="reference" href="http://svn.pythonfr.org/public/pythonfr/utils/misc/gpsdriveToGoogleEarth.py">gpsdriveToGoogleEarth.py</a>. This quick and dirty script will generate a file &#8216;ap.kml&#8217;. Now simply launch Google Earth and open this file. You will see something like this:</p>
<div class="image"><img src="http://www.brest-wireless.net/albums/Misc/google_earth.sized.jpg" alt="http://www.brest-wireless.net/albums/Misc/google_earth.sized.jpg" /></div>
<p>The main issue for me, is that <a class="reference" href="http://earth.google.com/">Google Earth</a> doesn&#8217;t support Linux right now so I need to dual-boot.. But this provide a easy way to build the card without too much pain. And i can share the Google Earth file others guys simply.</p>
</div>
<div id="warning" class="section">
<h1><a name="warning">WARNING</a></h1>
<p>I do this only for the fun, so don&#8217;t try to hack wireless access point using this howto, this is not the goal !</p>
<p>&#8211; Enjoy</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/212.html/feed</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Extract GPS from Kismet log with ElementTree</title>
		<link>http://www.larsen-b.com/Article/204.html</link>
		<comments>http://www.larsen-b.com/Article/204.html#comments</comments>
		<pubDate>Mon, 23 May 2005 21:58:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[kismet]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Wifi]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have read a lot of noise about ElementTree but never really used it. Tonight i need to extract a bunch of GPS data from a kismet log file. Let&#8217;s give it a try from elementtree import ElementTree data = &#8230; <a href="http://www.larsen-b.com/Article/204.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I have read a lot of noise about <a class="reference" href="http://effbot.org/zone/element-index.htm">ElementTree</a> but never really used it. Tonight i need to extract a bunch of GPS data from a kismet log file. Let&#8217;s give it a try</p>
<pre class="literal-block">from elementtree import ElementTree

data = open('Kismet-May-22-2005-4.xml','r').read()

detection = ElementTree.XML(data)

for node in detection.getchildren():
try:
print "SSID: " + node.find('SSID').text,
except AttributeError:pass  #hidden SSID
print "BSSID: " +  node.find('BSSID').text,
gps = node.find('gps-info')
print "Lon: " + gps.find('max-lon').text +  " Lat: "  + gps.find('max-lat').text</pre>
<p>Really simple, and seems to offer really good speed. I now have another weapon for every day work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/204.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
