1 |
On Fri, Sep 09, 2022 at 10:40:04AM -0400, Walter Dnes wrote |
2 |
> Here are the first 4 lines from scan_result at an establishment. I've |
3 |
> replaced the 3-word ccompany name with "AAAA BBBB CCCC". Note that they |
4 |
> share the same bssids with "BELL342". |
5 |
> |
6 |
> Selected interface 'wlan0' |
7 |
> bssid / frequency / signal level / flags / ssid |
8 |
> 26:20:c7:c2:b7:a7 5220 -53 [WPA2-PSK-CCMP][ESS] AAAA BBBB CCCC |
9 |
> 24:20:c7:c2:b7:a7 5220 -53 [WPA2-PSK-CCMP][ESS] BELL342 |
10 |
> 24:20:c7:c2:b7:a6 2462 -28 [WPA2-PSK-CCMP][ESS] BELL342 |
11 |
> 26:20:c7:c2:b7:a6 2462 -46 [WPA2-PSK-CCMP][ESS] AAAA BBBB CCCC |
12 |
> |
13 |
> I've tried... |
14 |
> |
15 |
> wpa_cli password "AAAA BBBB CCCC" <password> |
16 |
> wpa_cli password AAAA\ BBBB\ CCCC <password> |
17 |
> |
18 |
> ...and they both return "FAIL". Any ideas on what to try next? |
19 |
|
20 |
PEBKAC. I was mis-reading the instructions. Since the sign at the |
21 |
breakfast place mentioned "password", in the wpa_cli dialogue I entered... |
22 |
|
23 |
> set password 0 "AAAA BBBB CCCC" "password" |
24 |
|
25 |
...when I should've been entering... |
26 |
|
27 |
> set_network 0 ssid "AAAA BBBB CCCC" |
28 |
> set_network 0 psk "password" |
29 |
|
30 |
The flags "[WPA2-PSK-CCMP][ESS]" should've been the hint. |
31 |
https://wiki.archlinux.org/title/wpa_supplicant#Connecting_with_wpa_passphrase |
32 |
set me straight. BTW, wpa_cli is "the hard way" of doing things. What's |
33 |
"the easy way", you ask? It's a short script like so... |
34 |
|
35 |
#!/bin/bash |
36 |
/etc/init.d/wpa_supplicant stop |
37 |
wpa_supplicant -B -i wlan0 -c <(wpa_passphrase "ssid" "password") |
38 |
|
39 |
No need for a stanza in wpa_supplicant.conf. Note: *THE SCRIPT MUST |
40 |
BE RUN FROM A ROOT SHELL. "SUDO" WILL NOT WORK.* The "wpa_passphrase" |
41 |
tool is installed as part of "wpa_cli" install, no extra setup needed. |
42 |
|
43 |
I was the first customer in for breakfast, so I had the wifi network |
44 |
capacity all to myself. https://www.speedtest.net/result/13728930233 |
45 |
is the result from Speedtest Net, over 31 mbits down and 10 mbits up. |
46 |
|
47 |
-- |
48 |
I've seen things, you people wouldn't believe; Gopher, Netscape with |
49 |
frames, the first Browser Wars. Searching for pages with AltaVista, |
50 |
pop-up windows self-replicating, trying to uninstall RealPlayer. All |
51 |
those moments, will be lost in time like tears in rain... time to die. |