How can someone get the BSSID of a router without connecting to it in order to differentiate between duplicate SSIDs?
Does a router broadcast the BSSID?
How can someone get the BSSID of a router without connecting to it in order to differentiate between duplicate SSIDs?
Does a router broadcast the BSSID?
For Mac OS and macOS that's
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
for the currently connected wifi, which you can also get by alt+click on the wifi menu.
To get a list of all hotspots/network available use
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s