Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
First of all, I need to tell you guys, that this webiste is amazing! <33 Thank you guys for all the great advice. I was using die, but must have lost it somewhere when using CTRL+K in nano. I was afraid that Net::Pcap was unable to sniff wireless packets in the first place, but I got it to. Well, i think i did.
I did: ------------------- iwconfig wlan0 mode monitor channel 6 (channel of my AP and clients) ifconfig wlan0 up perl wireless.pl wlan0 (wireless.pl is below) And i put to print "$packet" which is the raw packet which beeped up my ssh terminal and loaded it with garbage, except a few plain text areas!! The ESSID's where there!! so maybe this is so far possible! when i run the program below, i get no warnings, no errors, etc, but the MAC address output looks like this: root@WeakNetLabs:/home/assistant/code/wifi# perl wireless.pl wlan0 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 000000028509, 000018002e48 ^C which is odd. I fixed the syntax error in the loop, i guess, but ended up using the below code example found on the Net::Pcap tutorial at CPAN. wireless.pl:
In reply to Re^2: Net::Pcap with wireless
by trevelyn
|
|