NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 05-03-2004   #1 (permalink)
washu
Registered Member
 
washu's Avatar
 
Join Date: Apr 2004
Posts: 9
Perl Module

I am writing some perl modules to perform all the functions trackns and mappoint voice scripts perform. Sorry but I hate vbscript and would rather work in perl. Also a perl version of stumbleverter wil be include. as a side note anyone have an email for the author of stumbleverter? I want to use his/her icons in my perl script. If there is interest I will post the modules.

Washu
washu is offline   Reply With Quote
Old 05-03-2004   #2 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,008
Quote:
Originally Posted by washu
I am writing some perl modules to perform all the functions trackns and mappoint voice scripts perform. Sorry but I hate vbscript and would rather work in perl. Also a perl version of stumbleverter wil be include. as a side note anyone have an email for the author of stumbleverter? I want to use his/her icons in my perl script. If there is interest I will post the modules.

Washu
Personally, I'm always interested in seeing more PERL. For what it's worth, here's my Streets & Trips converter. (Originally from guruchill.)
Attached Files
File Type: txt v1all.pl.txt (3.7 KB, 211 views)
__________________
Thorn
Sex and Violence. You can't enjoy one, if you don't survive the other. (And that works both ways...)
Thorn is offline   Reply With Quote
Old 05-03-2004   #3 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,127
Quote:
Originally Posted by washu
I am writing some perl modules to perform all the functions trackns and mappoint voice scripts perform. Sorry but I hate vbscript and would rather work in perl. Also a perl version of stumbleverter wil be include. as a side note anyone have an email for the author of stumbleverter? I want to use his/her icons in my perl script. If there is interest I will post the modules.

Washu

Is this the same as Stumbverter? Try here.
wrzwaldo is offline   Reply With Quote
Old 05-03-2004   #4 (permalink)
washu
Registered Member
 
washu's Avatar
 
Join Date: Apr 2004
Posts: 9
oops did mean stumbverter

Yeah I did mean stumbverter, really just want the icons, I am didnt like how stumbverter adds access points using the SSID as a title, I use BSSID more unique.
washu is offline   Reply With Quote
Old 07-02-2004   #5 (permalink)
rpiguy
Registered Member
 
Join Date: Jul 2004
Location: Boston, MA
Posts: 2
interest in perl

I do some perl programming and no programming in any other languages. So I would definitely be interested in perl based netstumbler scripts.
rpiguy is offline   Reply With Quote
Old 04-04-2005   #6 (permalink)
DSMcL
Registered Member
 
Join Date: Mar 2005
Posts: 2
I too would be very, very interested in the modules(s) !

I too do all my coding in perl.

Thanks in advance,

Dave
DSMcL is offline   Reply With Quote
Old 04-04-2005   #7 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,755
Quote:
Originally Posted by washu
Yeah I did mean stumbverter, really just want the icons, I am didnt like how stumbverter adds access points using the SSID as a title, I use BSSID more unique.
The Stumbverter icons are stored in the program folder\icons. Or at least on my machine they are. Otherwise user Resource Hacker to extract the icons.
__________________
It's not Intelligent Design, it's peer pressure.

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘
beakmyn is offline   Reply With Quote
Old 05-04-2005   #8 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
We had a discussion about the current CPAN module for NetStumbler here: Realtime data input to MySQL - Perl and a few people seemed interested (me included!).

I am in the process of updating the 'perlstumbler' library called 'stumblelib.pm'. I have obviously re-used a bunch of code (I will be giving proper credit), but I have re-organized some of it, changed some formatting, standardize some of the logic, and finally I hope to remove some duplication.

My goal is to have a module that is dedicated to the NetStumbler ns1 format. The perlstumbler program, and the CPAN module both do more than I require, and the CPAN module author even admits that his module is probably misnamed (in his readme):

Quote:
This modules is for use with NetStumbler/Kismet/iStumbler
it was initially created for use with perl scripts under netstumbler, hence the netstumbler
package name. Got a better suggestion for a package name send me an email to
washu@olypmus.net. This package provides a methods to parse NetStumbler files
I have the module now accepting an ns1 file, and it will return a list of lists (or, more specifically, a list of references to lists) with which you can do whatever you like. If you have any ideas about what kind of options you would like to pass to the module, and what kind of things you want back (other than the data) please post them here. I'll try and add them.

My plan is to have the first version done by the end of this week.

Thanks.

Last edited by dwakeman : 05-04-2005 at 11:29 AM.
dwakeman is offline   Reply With Quote
Old 05-04-2005   #9 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,127
Quote:
Originally Posted by dwakeman
This is a crosspost (sorry mods), but I thought I would reply in this thread because it's more on topic.
...
You know you can delete your other post right?
wrzwaldo is offline   Reply With Quote
Old 05-04-2005   #10 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
Quote:
Originally Posted by wrzwaldo
You know you can delete your other post right?
I do now. Post deleted - thanks.
dwakeman is offline   Reply With Quote
Old 05-04-2005   #11 (permalink)
nashr
Uber Geek
 
nashr's Avatar
 
Join Date: Aug 2002
Location: Virginia
Posts: 1,603
Outstanding. I, too, am a Perl geek. I look forward to seeing your scripts. Thank you for sharing!
__________________
Help! I've been Simpsonized!
nashr is offline   Reply With Quote
Old 05-05-2005   #12 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
Ok, I have wrapped up the first version of the module, and I have contacted the original two (marius and Sal Scotto) authors regarding it (a head's up).

I will release this here first so that people can try it out and send in any questions/comments/concerns. If you would like to try it out, you can download it here:

http://www.perldev.org/project.cgi?pid=6

You can try the included test exe (if you don't have Perl) or Perl file by passing it an ns file, and it will create a csv file with the AP's in the ns1.

v0.01!
dwakeman is offline   Reply With Quote
Old 05-06-2005   #13 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
I have uploaded v0.02 of the module to my site (http://www.perldev.org/project.cgi?pid=6).

I have removed a bunch of duplication and cut down the module to six subroutines from fifteen. There are still two subroutines ( readGPSData and readAPData) that are only used to move you along in the NS1 file, they return nothing. My next job is to get rid of those two and handle the file position moving from the main readAPInfo subroutine.

After that I will convert this to an OO interface allowing you to set parameters for parsing the file. Some ideas would be:
  • Min/Max Lat/Long data - to catch AP's with bad GPS info (I had a few plotted 200 miles off the coast of Africa once). Of course NS handles this by (I believe *) comparing multiple results for the same AP and returning the 'BestLat', 'BestLong', but this could filter that even further.
  • Data export options - specify data type (eg: XML/HTML/CSV/Summary) and export filename.
  • Filtering options - not sure, maybe something like WEP or Non-WEP only.
  • Maybe allow you to enable returning of ALL data for an AP, not just the 'best' from NetStumbler.

As I go I'll probably think of more ways to allow developers to interact with the module. But if anyone has any ideas, please let me know and I'll do my best to add them.

dwakeman {at} gmail (dot) com.

Thanks,
Dave



* I'm not sure exactly how NS creates these. I would assume it takes every single entry for an AP (you could have many), then does some averaging based on each entry. *shrug*, this is purely a guess right now.

Last edited by dwakeman : 05-06-2005 at 12:35 PM.
dwakeman is offline   Reply With Quote
Old 05-06-2005   #14 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,008
Quote:
Originally Posted by dwakeman
...[*]Min/Max Lat/Long data - to catch AP's with bad GPS info (I had a few plotted 200 miles off the coast of Africa once). Of course NS handles this by (I believe *) comparing multiple results for the same AP and returning the 'BestLat', 'BestLong', but this could filter that even further.


* I'm not sure exactly how NS creates these. I would assume it takes every single entry for an AP (you could have many), then does some averaging based on each entry. *shrug*, this is purely a guess right now.
Good guess, but wrong. It's the point of the highest signal strength.
__________________
Thorn
Sex and Violence. You can't enjoy one, if you don't survive the other. (And that works both ways...)
Thorn is offline   Reply With Quote
Old 05-07-2005   #15 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
Quote:
Originally Posted by Thorn
Good guess, but wrong. It's the point of the highest signal strength.
Ok thanks, that makes sense.

I thought of something else to add to the module. I was reading about the problem some were having with corrupted NS1 files, and having to go through a manual trial and error process (http://members.netjunkies.net/streaker/repair_ns1.asp and http://www.frontiernet.net/~beakmyn/...le%20Recovery/) to try and save as many AP's as possible from the file. I want to see if I can get the module to try and automatically repair the file, or at least get as many good AP's as possible out.

I was able to find someone's corrupted file here: Corrupted AP file but I was hoping I could get a second one (doesn't have to be huge) so I could make sure I was doing this properly. If someone has one and wouldn't mind, please email it to me (my email is above).

Thanks,
Dave
dwakeman 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 02:32 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.