hoover.pl - Wi-Fi probe requests sniffer
Original idea by David Nelissen (twitter.com/davidnelissen)
Thank to him for allowing me to reuse the idea!
This script scans for wireless probe requests and prints them out.
Hereby you can see for which SSID's devices nearby are searching.
Usage: hoover.pl --interface=wlan0 [--help] [--verbose] [--iwconfig-path=/sbin/iwconfig] [--ipconfig-path=/sbin/ifconfig]
[--dumpfile=result.txt]
Where:
--interface : Specify the wireless interface to use
--help : This help
--verbose : Verbose output to STDOUT
--ifconfig-path : Path to your ifconfig binary
--iwconfig-path : Path to your iwconfig binary
--tshark-path : Path to your tshark binary
--dumpfile : Save found SSID's/MAC addresses in a flat file (SIGUSR1)
##################################################################################################
Changes I Made:
1. Changed tshark path from /usr/local/bin/tshark to /usr/bin/tshark.
2. Changed steps to put interface into monititor mode.
From:
# Configure wireless interface
(system("$ifconfigPath $interface up")) && "Cannot initialize interface $interface!\n";
# Set interface in monitor mode
(system("$iwconfigPath $interface mode monitor")) && die "Cannot set interface $interface in monitoring mode!\n";
To:
# Configure wireless interface
(system("$ifconfigPath $interface down")) && "Cannot initialize interface $interface!\n";
# Set interface in monitor mode
(system("$iwconfigPath $interface mode monitor")) && die "Cannot set interface $interface in monitoring mode!\n";
# Configure wireless interface
(system("$ifconfigPath $interface up")) && "Cannot initialize interface $interface!\n";