![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
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 |
|
|
|
|
|
#2 (permalink) |
|
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. |
|
|
|
|
|
#3 (permalink) |
|
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 |
|
|
|
|
|
#4 (permalink) |
|
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 |
|
|
|
|
|
#5 (permalink) |
|
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 ╡ └──────────────────────────────┘ |
|
|
|
|
|
#6 (permalink) |
|
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 |
|
|
|
|
|
#7 (permalink) |
|
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. |
|
|
|
|
|
#8 (permalink) |
|
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. |
|
|
|
|
|
#9 (permalink) | |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,735
|
Quote:
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. |
|
|
|
|
|
|
#10 (permalink) |
|
Registered Member
Join Date: Aug 2005
Posts: 7
|
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 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 ![]() |
|
|
|
|
|
#13 (permalink) | |
|
Registered Member
Join Date: May 2006
Posts: 2
|
Quote:
It could be very usseful to show also the channel number to see busy channels near. |
|
|
|
|
|
|
#14 (permalink) | |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,816
|
Quote:
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.... |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|