NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Windows
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 08-30-2005   #1 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
New Tool: KML-WarDrive (Netstumbler to Google Earth)

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
Attached Files
File Type: zip KML-WarDrive.zip (13.3 KB, 787 views)
deathbypizza is offline   Reply With Quote
Old 08-30-2005   #2 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,735
Tried using both a .ns1 and exported summary file still broke. What happens if the GPS field is blank for some records?
__________________
No matter where you go, there you are.

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘

Last edited by beakmyn : 05-28-2007 at 02:13 PM.
beakmyn is offline   Reply With Quote
Old 08-30-2005   #3 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
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! ), 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
Attached Files
File Type: zip SomeBlankGPS.zip (1.5 KB, 99 views)
deathbypizza is offline   Reply With Quote
Old 08-30-2005   #4 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
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 is offline   Reply With Quote
Old 08-30-2005   #5 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,735
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?
__________________
No matter where you go, there you are.

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘
beakmyn is offline   Reply With Quote
Old 08-30-2005   #6 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
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 is offline   Reply With Quote
Old 08-30-2005   #7 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,735
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.
__________________
No matter where you go, there you are.

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘

Last edited by beakmyn : 08-30-2005 at 06:46 AM.
beakmyn is offline   Reply With Quote
Old 08-30-2005   #8 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
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 is offline   Reply With Quote
Old 08-30-2005   #9 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,735
Quote:
Originally Posted 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.

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.
__________________
No matter where you go, there you are.

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘

Last edited by beakmyn : 08-30-2005 at 08:23 AM.
beakmyn is offline   Reply With Quote
Old 08-30-2005   #10 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
Cheers!

Also here's an updated build, it'll substitute the < and > symbols with &lt; 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 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
Attached Files
File Type: zip KML-WarDrive.zip (13.3 KB, 470 views)
deathbypizza is offline   Reply With Quote
Old 09-30-2005   #11 (permalink)
spiff
Registered Member
 
Join Date: Jun 2002
Posts: 1
Your Second Attempt Worked Great

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 is offline   Reply With Quote
Old 10-01-2005   #12 (permalink)
deathbypizza
Registered Member
 
Join Date: Aug 2005
Posts: 7
I'm hoping to. Unfortunately Uni is packing on the assignments more heavily than I expected, but I haven't forgotten!
deathbypizza is offline   Reply With Quote
Old 06-10-2006   #13 (permalink)
fjuarez
Registered Member
 
Join Date: May 2006
Posts: 2
Quote:
Originally Posted by deathbypizza
Thanks for all the ideas 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

It could be very usseful to show also the channel number to see busy channels near.
fjuarez is offline   Reply With Quote
Old 06-10-2006   #14 (permalink)
Dutch
Humourless EuroMod.
 
Dutch's Avatar
 
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,816
Quote:
Originally Posted by fjuarez
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....
Dutch is offline   Reply With Quote
Old 06-11-2006   #15 (permalink)
fjuarez
Registered Member
 
Join Date: May 2006
Posts: 2
Quote:
Originally Posted by Dutch
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 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 07:43 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.