Page 1 of 2

New Tool: KML-WarDrive (Netstumbler to Google Earth)

PostPosted: Tue Aug 30, 2005 12:10 am
by deathbypizza
Hi All,

Here's a NetStumbler to Google Earth tool I've made.
It's based on the ns2kml tool and code posted by FlipO, so special thanks goes out to FlipO!

The enhancements on the original ns2kml are as follows:
- Break down of wireless nodes by Encrypted/Not Encrypted
- Further break down of notes by AccessPoint/Peer/Bridge
- Different Icons for Encrypted/Not Encrypted nodes
- Option to create own map name before generating map
- Feed back on number of nodes mapped (and number of failures if any do!)
- Identification of clients that aren't broadcasting SSID as (No SSID), no more blank nodes!

The tool is called KML-WarDrive. As with FlipO's original post I'll be posting the code soon so anyone else can make enhancements. (Sorry it's not posted yet guys, I'm under the pump @ uni and the current code is embarrassingly messy)

Cheers!!

- DBP

PostPosted: Tue Aug 30, 2005 2:18 am
by beakmyn
Tried using both a .ns1 and exported summary file still broke. What happens if the GPS field is blank for some records?

PostPosted: Tue Aug 30, 2005 3:03 am
by deathbypizza
Hmmmm....
As per the original ns2kml blank GPS fields are looked out for.
I punched together a test file based on a Drive I did that yeilded next-to no results (damn rural area! :rolleyes: ), and used NetStumbler to merge a scan of my own APs into it (therefore please excuse manually edited MAC addresses of 'TestNet' SSID.

The file converted without any hassles, although id Did identify an issue with my counter for access points that weren't mapped to google maps.

There is a possibility that the problem is related to file permissions I guess.

If the summary file I've attached below matches the format for your summary file, then another option may be to zip & post the summary file you're trying to convert.

I'll take a look at it & see if I can get anything working.

- DBP

PostPosted: Tue Aug 30, 2005 3:07 am
by deathbypizza
I got it!

Looking at the stack trace that you posted I tried to read AND write the same file at the same time, and bingo!


Just remember, you're best to write to a new file (and give it a .kml extension).
Also be certain that you have write access to the directory you want to write to (if not sure, "My Documents" is usually the best).

- DBP

PostPosted: Tue Aug 30, 2005 3:25 am
by beakmyn
How are you doing the folder structures? Do you first search the summary file and write all the encrypted then go back through and write all the unencrypted?

PostPosted: Tue Aug 30, 2005 5:16 am
by deathbypizza
Hey beakmyn,

I'm using a number of arrays, and populating a different array from each line in the summary file depending on encryption & type.

From there the Google Earth KML file is made by writing one array at a time.

I'll have the source code up soon enough ;) .

BTW, how'd it work out for you? Were you able to convert your summary file?

- DBP

PostPosted: Tue Aug 30, 2005 5:42 am
by beakmyn
Nope you'll need to treat SSID as ![CDATA even when in the <name></name> structure.

Google Earth fails when it hits the SSID "<no ssid>" because it thinks the < > are going to be xml tags.

I'm looking into the folder structure for use in my app below. I'm also looking into the ability to make .kmz (zip file of icons and .kml) files.

PostPosted: Tue Aug 30, 2005 7:11 am
by deathbypizza
OK, now it makes sense.

Does the file you're using have kismet data imported into it?
Raw netstumbler data will give a blank SSID as being null, my app only converts them to (No SSID) (round brackets) but doesn't handle kismet style angle brackets < >.

Try doing a find-replace all on your netstumbler summary file & then see if it converts propperly.

PostPosted: Tue Aug 30, 2005 7:14 am
by beakmyn
deathbypizza wrote:OK, now it makes sense.

Does the file you're using have kismet data imported into it?
Raw netstumbler data will give a blank SSID as being null, my app only converts them to (No SSID) (round brackets) but doesn't handle kismet style angle brackets < >.

Try doing a find-replace all on your netstumbler summary file & then see if it converts propperly.



Yes it's imported kismet data from my conveter program. I removed the <> and it imported ok.

Some suggestions:

Instead of multiple message boxes for errors write a summary text at the end and display that instead, with the SSID and line number since it's possible that the SSID can occur multiple times in the file.


Add drag and drop for the input file and maybe assume the output file will be the same name only .kml. Helpful for first time users.

Limit output fiile type to .kml only and populate save file dialog with current import filename .kml


I like the folders mine doesn't do that, yet ;) Good job.

PostPosted: Tue Aug 30, 2005 7:41 am
by deathbypizza
Cheers!

Also here's an updated build, it'll substitute the < and > symbols with < and &rt; respectively, so you wont need to find-replace next time.

With the other points:
Multiple text boxes: That was me being a little lazy, thought I'd leave the stack-trace visible till all issues were ironed out ;) .

Input & Output file suggestion:
- I'll play around with drag & drop, something I'd like too, and I certainly agree with the output file idea.

Limiting Output:
Again good idea, particularly for new users.

Thanks for all the ideas :D Now I've just got to find the time either side of uni to put them into action and get the code posted up here :eek:

Your Second Attempt Worked Great

PostPosted: Fri Sep 30, 2005 1:23 pm
by spiff
I tried the first version that you posted and it errored out on me.

The second version you posted further down the thread worked great.

Are you going to be releasing the source anytime soon?

PostPosted: Sat Oct 01, 2005 9:06 am
by deathbypizza
I'm hoping to. Unfortunately Uni is packing on the assignments more heavily than I expected, but I haven't forgotten!

PostPosted: Sat Jun 10, 2006 1:02 pm
by fjuarez
deathbypizza wrote:Thanks for all the ideas :D Now I've just got to find the time either side of uni to put them into action and get the code posted up here :eek:



It could be very usseful to show also the channel number to see busy channels near.

PostPosted: Sat Jun 10, 2006 3:31 pm
by Dutch
fjuarez wrote:It could be very usseful to show also the channel number to see busy channels near.

Damn.. Where is Buffy when the Zombies are awaken ?

Hint : Look at the the date of the post preceeding your post - Almost 1 year...

Dutch

PostPosted: Sun Jun 11, 2006 12:22 pm
by fjuarez
Dutch wrote:Damn.. Where is Buffy when the Zombies are awaken ?

Hint : Look at the the date of the post preceeding your post - Almost 1 year...

Dutch


Upssss !!