brannondorsey / sniff-probes

Plug-and-play bash script for sniffing 802.11 probes requests :nose:
MIT License
245 stars 43 forks source link

Error Sniff-probes #2

Closed AdelinoFB closed 6 years ago

AdelinoFB commented 6 years ago

Hello, im ussing a beaglebone black ,i have put an interface in monitor mode and the program has executed. i get the following error bash: ./sniff-probes.sh: Permission denied

Im ussing sudo

brannondorsey commented 6 years ago

It sounds like your sniff-probes.sh file doesn't have execute permissions. You can add them with:

chmod +x sniff-probes.sh
AdelinoFB commented 6 years ago

thanks brannondorsey, after that i get the following: mon0 is the monitor interface IFACE=mon0 ./sniff-probes.sh awk: parse-tcpdump.awk: line 2: syntax error at or near , awk: parse-tcpdump.awk: line 7: syntax error at or near , awk: parse-tcpdump.awk: line 13: syntax error at or near , tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on mon0, link-type IEEE802_11_RADIO (802.11 plus radiotap header), capture size 256 bytes tcpdump: Unable to write output: Broken pipe

brannondorsey commented 6 years ago

Oh man, I remember coming across this ages ago. If I remember correctly, some OSes have distributions of awk that vary slightly. I've confirmed that this script works with gawk. Perhaps try downloading gawk and changing awk in sniff-probes.sh to gawk.

I'm pretty sure that Ubuntu/debian ship with gawk as the default awk implementation. What OS are you on?

If that fixes your problem I'll update this repo to specifically use gawk.

AdelinoFB commented 6 years ago

My OS is debian ,i'll try this thanks

brannondorsey commented 6 years ago

I can confirm that my awk (and the awk on the Ubuntu machine that I developed this on) actually points to gawk :open_mouth:. Have gawk a go ;)

AdelinoFB commented 6 years ago

Thanks you Brannon ,now it goes!!