Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can someone get the BSSID of a router without connecting to it?

  1. How can someone get the BSSID of a router without connecting to it in order to differentiate between duplicate SSIDs?

  2. Does a router broadcast the BSSID?

like image 492
user1973385 Avatar asked Dec 15 '13 18:12

user1973385


3 Answers

Applying the command

netsh wlan show all 

in windows would show details of all the routers including the BSSID in your wireless range, even though you might not have been connected to the router.

like image 64
hardikudeshi Avatar answered Oct 26 '22 00:10

hardikudeshi


You can get all the BSSID you have around with this command:

netsh wlan show networks mode=bssid
like image 34
Carlos Teixeira Avatar answered Oct 25 '22 23:10

Carlos Teixeira


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
like image 2
luckydonald Avatar answered Oct 26 '22 00:10

luckydonald