6

Is it theorically possible to connect to a hidden wifi without giving the ESSID?

The way I connect to a hidden wifi requires to give an SSID (nmcli refuses to have a blank 802-11-wireless.ssid field).

 nmcli con add type wifi con-name <con name> ifname wlan0 ssid <SSID>
 nmcli con modify <con name> wifi-sec.key-mgmt wpa-psk
 nmcli con modify <con name> wifi-sec.psk <password>
  • 1
    I would like to ask why you're bothering with a "hidden" network at all, given there are programs that can trivially find such SSIDs anyway. A SSID is a network name and not a password, and was not designed to be hidden. – roaima Jan 4 '17 at 19:49
  • It is indeed straightforward if there is a client connecting with airoplay-ng (see ESSID displayed in wireshark. Is it possible to get the SSID if there are no client? – user123456 Jan 4 '17 at 20:53
  • 1
    That's an interesting question, too. I don't believe you can retrieve the SSID unless there's a client using it, and as far as I know you need the SSID to be able to connect. (But since I don't know for certain I'm reluctant to offer this as an answer.) – roaima Jan 4 '17 at 21:33
  • But that is the purpouse of the SSID. Being hidden or broadcast, you NEED to have an SSID or Mac addres where you want to associate. It's just plain stupid try to connect to a wireless network that you cant identify what network is... – user34720 May 25 '17 at 12:43
2

Is not even theoretically possible to do this. You are trying to access you email, without knowing what is your mailserver or mail provider...

Knowing the SSID(or ESSID - i'll use this terms interchanged cause, with one you can identify the other) is the basic point to get a connection done. Is the way you identify where you want to "phisically" connect(i'm using phisically not to determine the antena hardware itself, but the medium that is being presented nearby through air).

Take a look at this excelent answer at Networking.stackexchange. Basically if you want to connect to a wifi network you need to catch a beacon with SSID information, or you need to send a probe request. I'm not counting here any method to discover hidden ssids, cause those will only be useful to identify the network you want...

How can you station possibly decide what ssid/essid to use, just based on your password?

Your best bet here is to connect using your bssid and this answer at askubuntu explains very well. Note that this setup will be valid inside a network where you have just ONE access point cause bssids are calculated based on AP mac address(and as you can see the example below quoted from that answer, Apolo III ssid has 3 bssid). You just need to adapt to your needs of wifi cipher being used:

Quoting the answer:

$ nmcli -f in-use,ssid,bssid,signal,bars  dev wifi
*  SSID               BSSID              SIGNAL  BARS 
*  Apollo III (TWC)   XX:XX:XX:XX:XX:XX  98      ▂▄▆█ 
   Chromecast8481     XX:XX:XX:XX:XX:XX  97      ▂▄▆█ 
   --                 XX:XX:XX:XX:XX:XX  94      ▂▄▆█ 
   Apollo III (1)     XX:XX:XX:XX:XX:XX  87      ▂▄▆█ 
   TWCWiFi            XX:XX:XX:XX:XX:XX  80      ▂▄▆_ 
   CableWiFi          XX:XX:XX:XX:XX:XX  80      ▂▄▆_ 
   TWCWiFi-Passpoint  XX:XX:XX:XX:XX:XX  80      ▂▄▆_ 
   Apollo III (1)     XX:XX:XX:XX:XX:XX  70      ▂▄▆_

The cli for the connection to the BSSID is:

$ nmcli d wifi connect XX:XX:XX:XX:XX:XX

Related Stuff:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.