Hey noobs, its bird man bringing y'all back to the yard. Now that you know how
to get free wireless from the last issue, now it's time to actually do it
with some leet maps. Ok lets roll.
The first thing you need to do is point your browser over to www.wigle.net
and register. After you register you need to down load JiGLE. This is the
source of the map points. It's a pretty nice interface but a tad slow. Since
you will be needing linux commands unless you are running *nix you can stop
at this point now. JiGLE is still nice but not as bitchin as having it on
google earth. Untar the file and cd to JiGlE. When you run run.sh you'll
find out that you only have 1 map pack, from some where in Michigan. No one
lives in Michigan and if you live there I'm sorry. Time to map it up.
Again we'll find ourselves on wigle.net. This time we got to the
MapPacks/Trees section. Pick the state you want and down load the county/s you want. Make
sure that you pick the vector maps because that is what i picked. Now that
you have downloaded the mappacks move them to JiGlE directory and unzip
them. You can stop now and use JiGLE or continue but I'm gonna keep going to
show you guys how to make maps show on google earth.
Make sure that you are in the JiGLE directory and run 'run.sh'. Pick the map
that you want to convert to a kml and then log in with the user name and
password that you created earlier in this tutorial. You can open as many
maps as your heart desires. But as a warning it may take 15 minutes or so to
load all the points for maps. Finally we have all the data that we need. You
can close JiGLE.
Now here is the hard part. Not Micheal Jackson at elementary school hard, its
more like sand stone hard. Before you go any farther, down load this .tar.gz
RAY PUT A LINK TO THE TAR IT HAS THE SCRIPT AND ICONS. Open up a terminal
and untar the package into the JiGLE directory and then run these bash
lines.
cd WiGLEnet/data/
cat *.autocache > ../../mega.autocache
cd ../../
sort mega.autocache > mega1.autocache
mv mega1.autocache mega.autocache
sort -u mega.autocache > mega1.autocache
mv mega1.autocache mega.autocache
php wigle-to-kml.php mega.autocache > map.kml
Now that you did all of this, you could have just run wigle-to-kml.sh but you
now you know what is in the script. I'll explain what all of this means.
autocache is a file created by JiGLE that stores the coordinates,
BSSID(MAC address), ESSID(ssid) and various other thing. In the second line,
we are putting all the date into one huge file. This is done for various
reasons. The first reason is that the php script only takes one .autocahce
and the second is so it the duplicities can be sorted out. Next we sort the
file. Doing this orders the file in alphabetical order. Then it is sorted -u
which is remove duplicate entries. Lastly, the php script converts the data
into a .kml which google earth can read.
The php script works rather inefficiently. There are 2 main loops, one for
wep on and one for wep off.
for($count =0;$count<=7;$count++)
{
PrintKMLFolder($argv[1], 'Y', $count);
}
PrintKMLFolder is run 8 times, on time for every quality of service(QoS)
level. Since the .autocahce files have each data field seperated with a ~
the parsing is pretty easy. Each loop checks if wep is on or off and if the
QoS match, if they do, the data is added to the .kml file. Now you know why
the effecienty sucks more than a porn star. I plan on making a C++ version
with a vector of structs so that looping a file 16 times isnt needed.
Now that we have our map.kml we are headed to earth.google.com to down load
Google Earth. Install at least version 4.0. This is because our mappack
won't work with 3.x. Luckly, 3.x isn't for linux. Now install Google earth
and open map.kml. SHAZAM you're done. You can thank me later.
On that note I would like to thank Irongeek for providing me the base .php
scrip. Any comments, questions or concerens email me at
-out Ryan Bird603568 Richards