Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get to the encryption mode #29

Open
blithe2015 opened this issue Oct 21, 2020 · 5 comments
Open

How to get to the encryption mode #29

blithe2015 opened this issue Oct 21, 2020 · 5 comments
Labels

Comments

@blithe2015
Copy link

No description provided.

@bmegli
Copy link
Owner

bmegli commented Oct 21, 2020

This is not supported by this library

@blithe2015
Copy link
Author

Well, what other libraries can do this?

@bmegli
Copy link
Owner

bmegli commented Oct 22, 2020

I have no knowledge about such libraries.

From system tools wpa_supplicant should have capability to retrieve this information.

Example session using wpa_cli

sudo wpa_cli -iwlp1s0
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <[email protected]> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.



Interactive mode

> scan
OK
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
> scan_results
bssid / frequency / signal level / flags / ssid
xx:xx:xx:xx:xx:xx	2412	-61	[WPA2-PSK-CCMP][ESS]	Test1
xx:xx:xx:xx:xx:xx	2412	-62	[WPA2-PSK-CCMP][ESS]	WiFi-Test
<3>CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-75 noise=9999 txrate=180000
<3>CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-68 noise=9999 txrate=180000

You could examine its code. It would be rather tedious task.

iwd should be also capable of doing this.

@raduprv
Copy link

raduprv commented Jul 9, 2023

Hello. I would also be very interested in this capability. I want to make an interactive network scanner and seeing if a network is encrypted or not would be very useful. Is there any reason why you didn't add this?

@bmegli
Copy link
Owner

bmegli commented Jul 13, 2023

Is there any reason why you didn't add this?

I have no use for it.


You may investigate NL80211_BSS_CAPABILITY (currently not dumped by the library).

It may be a bit more complex than your first guess.

This stack-overflow post should give you some idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants