Idea for a Kismet perl module
February 27th, 2003
I’ve been thinking for a little bit about writing a perl module to interface with
Kismet, making it easy for people to write Kismet clients in perl. Basically, I envision being able to do something like this:
use Kismet::Client;
my $kismet = new Kismet::Client ( server => "localhost:54321" );
$kismet->add_protocol(NETWORK, "bssid,type,ssid", \&network_callback);
$kismet->run;
sub network_callback (
my($info) = shift;
printf("Found network %s (%s)\n", $info->{ssid}, $info->{bssid});
)
Basically, I figure it’ll work best as a series of callback for the various types of information that Kismet can provide, and have the module take care of enabling the various protocols and parsing the information out into hashes for easy access. Once I get my computer at home up and running again, I hope to actually write some code for this.