OUI data collection

Take a script, leave a script - Like the penny tray only different

Very Simple Script

Postby nashr » Wed Jan 12, 2005 9:34 am

This one is too easy... and therefore has limitations.

The author of this Perl Module Net::MacMap made this impossibly simple. I've attached the sample he provides with his module (see below). Just to clarify, this sample is hard-coded with a sample MAC address. Simply modify this to accept input from STDIN, or via other methods... sniff, NS, etc.

This script is quick and easy, but cannot be easily updated as the author included the OUI data in the module. Anyway, here's the simple script.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

Help! I've been Simpsonized!
User avatar
nashr
 
Posts: 1585
Joined: Fri Aug 09, 2002 6:12 am
Location: Virginia

Postby Dutch » Wed Jan 12, 2005 9:58 am

nashr wrote:Playing with a perl script to take mac addresses, pull vendor data, and dump to mysql.

Just the usual geek stuff
:D

'n'shit

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 Monitr7 » Wed Jan 12, 2005 12:49 pm

Dutch wrote:'n'shit

Dutch


...n' things like that there.
WTOTD Industries - Where quality is Job #3.

G8tK33per doesn't care about the tarded people!
-Kanye West
User avatar
Monitr7
 
Posts: 1694
Joined: Mon Jan 27, 2003 4:55 am
Location: Rebrandsoftware's mom's house...

oui2mysql.pl

Postby nashr » Thu Jan 20, 2005 8:38 am

Here you go. This script is my attempt to grab the oui.txt using LWP, parse it with the code from the mungeOUI script provided by dwakeman, and suck it into MySQL.

I've been around this damn thing 3 times now and FINALLY I've got the bug fixed. This should work now :o
Attachments
oui2mysql-final.zip
(1.09 KiB) Downloaded 749 times
Help! I've been Simpsonized!
User avatar
nashr
 
Posts: 1585
Joined: Fri Aug 09, 2002 6:12 am
Location: Virginia

Previous

Return to Scripts

Who is online

Users browsing this forum: No registered users and 1 guest