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 07-19-2004   #1 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
Realtime data input to MySQL - Perl


I have just about completed a Perl script that will plot NS data directly into a MySQL DB. Obviously there are online sites (eg: wigle.net) that can handle this stuff for you, but I wanted to do collection/reporting/stats on my own as well.

It doesn't have fancy voice, or realtime MS Map plotting, but would anyone be interested in this? Since it's using Perl's DBI module, you could easily edit it to use pretty much any DB (Oracle, SQL Server, MySQL etc) without much fuss.

dave
dwakeman is offline   Reply With Quote
Old 07-19-2004   #2 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57

Also, I will be writing a utility (also in Perl) to take data already contained in ns1 files and input it into the DB. The script above will be for realtime entry only.
dwakeman is offline   Reply With Quote
Old 07-19-2004   #3 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,127
I would be interested in the utility for post processing the ns1 files.
wrzwaldo is offline   Reply With Quote
Old 07-19-2004   #4 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,039
I'd be interested in seeing these also.
__________________
Thorn
"Lawyers should never marry lawyers. This is called inbreeding. It produces idiot children and more lawyers."
Thorn is offline   Reply With Quote
Old 07-21-2004   #5 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57

Attached is the first script which collects realtime data and insert's it into a MySQL DB.

It's very simple, but it does it's job (mostly, see README.TXT).

If you have any new issues (not covered in the README), please post them here.

update: Also, I use tab spaces/width of 2 in my Perl IDE, so the code may look odd if you are using an editor (like notepad which uses 8) that uses any other value for tab spacing.

Thanks,
dave

Attached Files
File Type: zip stumble-v0.0.4.zip (10.1 KB, 205 views)

Last edited by dwakeman : 07-21-2004 at 12:55 PM.
dwakeman is offline   Reply With Quote
Old 07-21-2004   #6 (permalink)
dwakeman
perlmonk
 
dwakeman's Avatar
 
Join Date: Jul 2004
Location: canadia
Posts: 57
I have noticed a few trends in it's failure to record data from specific hosts. I'll try and nail it down in the next few days and post an update.
dwakeman is offline   Reply With Quote
Old 01-19-2005   #7 (permalink)
nashr
Uber Geek
 
nashr's Avatar
 
Join Date: Aug 2002
Location: Virginia
Posts: 1,609
Perl Modules for NS at CPAN

I was doing some searching at cpan and came up with some perl modules for NetStumbler. Anyone know this guy, or tried these modules?

I may try to get to this sometime soon... yeah right. ok, eventually.
__________________
Help! I've been Simpsonized!
nashr is offline   Reply With Quote
Old 04-04-2005   #8 (permalink)
DSMcL
Registered Member
 
Join Date: Mar 2005
Posts: 2
Did you ever get a chance to try them out Nashr ?

Just came across this thread in a search and figured if there wasn't any feedback on them yet I would throw together a simple script to give them a go.

Dave
DSMcL is offline   Reply With Quote
Old 04-04-2005   #9 (permalink)
nashr
Uber Geek
 
nashr's Avatar
 
Join Date: Aug 2002
Location: Virginia
Posts: 1,609
Quote:
Originally Posted by DSMcL
Did you ever get a chance to try them out Nashr ?

Just came across this thread in a search and figured if there wasn't any feedback on them yet I would throw together a simple script to give them a go.

Dave
Dave
No, I've been totally swamped between work and trying to enhance my website for some tracking. I have not looked these over. I also haven't stumbled since Shmoocon.

Let me/us know if you get a chance to look them over.
__________________
Help! I've been Simpsonized!
nashr 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 04:48 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.