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

works perfectly with wired ethernet. I can do that with the first version i posted, but when i use wireless i get errors
Unable to look up device information for wifi - wifi: no IPv4 address +assigned at catchme-ng.pl line 17.
so i comment that part out and it sniffs! But it thinks all source MAC addresses are elite:
wifi: addr/mask -> / 000031333337, 440000009000 000031333337, 440000009000 ^C
:( I feel like i am so close. I just need to sniff MAC addresses from wireless packets (ALL). like Airodump-ng does.

Replies are listed 'Best First'.
Re^7: Net::Pcap with wireless
by traveler (Parson) on Nov 02, 2009 at 23:18 UTC
    in khen1950fx's code my $dev  = find_device($ARGV[0]); says that the name "wifi" printed in the error message is retrieved from $ARGV[0]. You call your device wlan0 not wifi. Maybe try wlan0 as the argument?