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

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

Postby deathbypizza » Tue Aug 30, 2005 12:10 am

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
Attachments
KML-WarDrive.zip
(13.3 KiB) Downloaded 1406 times
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Postby beakmyn » Tue Aug 30, 2005 2:18 am

Tried using both a .ns1 and exported summary file still broke. What happens if the GPS field is blank for some records?
beakmyn
 
Posts: 4858
Joined: Sun Aug 03, 2003 1:53 pm

Postby deathbypizza » Tue Aug 30, 2005 3:03 am

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
Attachments
SomeBlankGPS.zip
(1.45 KiB) Downloaded 523 times
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Postby deathbypizza » Tue Aug 30, 2005 3:07 am

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
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Postby beakmyn » Tue Aug 30, 2005 3:25 am

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?
beakmyn
 
Posts: 4858
Joined: Sun Aug 03, 2003 1:53 pm

Postby deathbypizza » Tue Aug 30, 2005 5:16 am

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
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Postby beakmyn » Tue Aug 30, 2005 5:42 am

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.
beakmyn
 
Posts: 4858
Joined: Sun Aug 03, 2003 1:53 pm

Postby deathbypizza » Tue Aug 30, 2005 7:11 am

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.
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Postby beakmyn » Tue Aug 30, 2005 7:14 am

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.
beakmyn
 
Posts: 4858
Joined: Sun Aug 03, 2003 1:53 pm

Postby deathbypizza » Tue Aug 30, 2005 7:41 am

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:
Attachments
KML-WarDrive.zip
(13.35 KiB) Downloaded 853 times
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Your Second Attempt Worked Great

Postby spiff » Fri Sep 30, 2005 1:23 pm

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?
spiff
Mini Stumbler
 
Posts: 1
Joined: Sat Jun 15, 2002 3:55 pm

Postby deathbypizza » Sat Oct 01, 2005 9:06 am

I'm hoping to. Unfortunately Uni is packing on the assignments more heavily than I expected, but I haven't forgotten!
deathbypizza
Mini Stumbler
 
Posts: 7
Joined: Sun Aug 14, 2005 5:58 am

Postby fjuarez » Sat Jun 10, 2006 1:02 pm

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.
fjuarez
Mini Stumbler
 
Posts: 2
Joined: Wed May 24, 2006 12:35 pm

Postby Dutch » Sat Jun 10, 2006 3:31 pm

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
All your answers are belong to Google. SEARCH DAMMIT!
Warning. Warning.
Low C8H10N4O2 level detected. Operator halted....
User avatar
Dutch
 
Posts: 6698
Joined: Fri Mar 05, 2004 12:00 pm
Location: City of Mermaids, Denmark

Postby fjuarez » Sun Jun 11, 2006 12:22 pm

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 !!
fjuarez
Mini Stumbler
 
Posts: 2
Joined: Wed May 24, 2006 12:35 pm

Next

Return to Windows

Who is online

Users browsing this forum: No registered users and 3 guests