packet has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I want to write a program in perl that pick up wireless network with a wireless network pc card on linux. And i want it to find access point with a Gps receiver. If i want to make it look something like aircrack-ng but in perl i would some how have to talk to the driver in perl some how?

I am very new when it come to wireless networks.

Ssomeone told me i have to learn XS programming with perl.

Replies are listed 'Best First'.
Re: Perl wireless Question
by Anonymous Monk on Aug 19, 2007 at 09:47 UTC
Re: Perl wireless Question
by erroneousBollock (Curate) on Aug 19, 2007 at 17:00 UTC
    Hi Monks, I want to write a program in perl that pick up wireless network with a wireless network pc card on linux.
    Pretty much a pointless exercise; wrap the existing tools (wpa_supplicant, iwlist, iwconfig, ifconfig, dhclient, ping... etc) in perl code.

    It would be a monumental effort indeed to replicate or better the functionality of these tools from scratch.

    Perhaps it might be a nice idea to encapsulate some of the scanning / interface-control logic in to reusable modules for CPAN... but really, those modules would do best to use the existing command-line utilities.

    And i want it to find access point with a Gps receiver.
    I'm not sure if I understand you here.

    I'm unaware of a wireless protocol which allows an AP to declare GPS-related resources and statistics... but of course, I may just be ignorant on the matter.

    If i want to make it look something like aircrack-ng but in perl i would some how have to talk to the driver in perl some how?
    That seems like a very ambitious project. Why not just write something that talks to aircrack-ng ?

    I am very new when it come to wireless networks.
    Here may be a good place to start reading.

    -David