I have written a script which scans for wifi networks with
iw dev wlan0 scan
and put the SSIDs in a file.
Is there a similar tool wich works a bit faster?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
First option: airodump-ng
airodump-ng [MONITOR MODE DEVICE] -w [FILE] --write-interval 5 -o csv
This will write a file [FILE]-01.csv which updates every 5 seconds. You have to kill the airodump-ng process when you want to stop scanning.
Second option: iwlist
iwlist wlan0 scanning | egrep 'Cell |Encryption|Quality|Last beacon|ESSID' > [FILE]
This will save a list of available networks with details to [FILE]. The process takes 1-5 seconds.
You need root privileges for both options.