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


In reply to Re: Perl wireless Question by erroneousBollock
in thread Perl wireless Question by packet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.