Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Net::Pcap with wireless

by trevelyn (Novice)
on Sep 13, 2009 at 18:21 UTC ( [id://795020]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Net::Pcap with wireless
in thread Net::Pcap with wireless

nope, that's not a MAC address, if i switch interfaces to wired ethernet (eth0), i see the MAC addresses of the windows computer i use PuTTY from and the Linux box with the wireless.pl app on it perfectly flying by.
Also, I don't really care about the payload, i just need the MAC addresses.
I can write another thread for channel hopping later using iwconfig or a Perl module to iwconfig later. I just want to make sure i can get MACs from the same data i see the plain text ESSID's.

My Net::Pcap is up to date: Net::Pcap is up to date (0.16). and i don't see a module for NetPacket for 802.11, but i do see a section in the Net::Pcap file on the CPAN site that says:
:datalink exports the data link types macros:
"DLT_IEEE802_11 - IEEE 802.11 wireless LAN"

as an exporter tag. Does that mean I need to do: "use Exporter;" and "export" them? that part confused me a bit, heh. Thanks again, man :)

Replies are listed 'Best First'.
Re^5: Net::Pcap with wireless
by traveler (Parson) on Sep 14, 2009 at 21:58 UTC
    I don't have a linux machine with wireless here to test with, but I think it means you need to tell pcap that it is getting 802.11 frames. Do this with pcap_set_datalink().

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://795020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-23 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found