I'm looking for a way to get BSSID and ESSID of all open (not encrypted) wireless networks in my surroundings with a bash command. It would be even better, if could filter out networks with a too low link quality. It is important that not too much other information is there, because I want to use the data as input for another script.

I spent the last few hours looking for a solution, but I couldn't find one. The best I found so far were:

  • nmcli dev wifi: unfortunately does not include the BSSID
  • sudo iw wlp4s0 scan: cannot be filtered to display only open networks. Contains we too many information that is not relevant to me.

I'd appreciate any help

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.