1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
Commit Graph

63 Commits

Author SHA1 Message Date
billz
ff3f6ddb90 fwrite priority to wpa network if defined 2023-10-08 11:49:56 +02:00
billz
deac75af89 Fix: handle 64 char passkey in absence of 8-63 char passhprase 2023-10-08 11:46:12 +02:00
billz
33c596189d Apply autoloader support for status messages 2023-09-16 11:46:11 +02:00
billz
157f29b858 Update sanitize wifi_client_interface var 2023-04-07 12:32:01 +02:00
billz
7adbfe143d Update connect var sanitization 2023-04-06 11:42:11 +02:00
billz
a07be6e3bd Input sanitization for wpa client 2023-04-03 15:20:01 +02:00
eldstal
db6bf4c6b4 Additional type check on sensitive network ID parameter 2023-03-31 22:20:10 +02:00
eldstal
30e35574a1 Input sanitization for wpa client, Fix for #1325 2023-03-30 12:18:38 +02:00
zbchristian
4408940a3d Improve detection of escaped hex bytes in ssid name 2021-11-24 23:02:07 +00:00
zbchristian
5cbb785529 Handle non-ASCII SSID
Non-ASCII SSID has to be stored in wpa_supplicant.conf identical to the string given by wpa_cli scan. This includes the escaped special chars (e.g. ö = \xc3\xb9 ), with a prescript "P".
To obtain a valid psk from wpa_passphrase, the UTF8 string is passed (ssid2utf8 replaces the \x bytes by their binary value) to the exec(). For this to work the shell locale has to be UTF8 (via putenv()). Otherwise the string is converted to the shell encoding.
2021-11-24 22:49:05 +00:00
glaszig
807a591504 remove unnecessary function calls 2021-06-01 03:02:04 +01:00
billz
e5024c4c19 Minor: fix labels + update en_US locale 2021-04-30 17:24:45 +01:00
billz
8873735d7f Add status msg, update shell cmds 2021-04-30 08:37:41 +01:00
Bill Zimmerman
c8a9c05d3e
Add handler for wpa_reinit 2021-04-29 23:56:40 +02:00
billz
b21ea0d28d Transfer template logic to includes, see #749 thx @mp035 2021-02-02 12:26:14 +00:00
christian Zeitnitz
f8a094134b Add Session variable "wifi_client_interface" 2020-06-09 20:25:19 +02:00
billz
2ca9bf5b6f Rename ambiguous variable for clarity 2020-06-09 15:32:49 +01:00
billz
9c2ae296d3 Merge branch 'zbchristian-wlan-switch' of https://github.com/billz/raspap-webgui into zbchristian-wlan-switch 2020-06-07 17:20:09 +01:00
billz
a6a92235f9 Add include wifi_functions getWifiInterface() 2020-06-07 17:17:16 +01:00
Bill Zimmerman
5c88aafbec
Merge branch 'master' into zbchristian-wlan-switch 2020-06-07 15:29:28 +02:00
billz
b14175ab0c Replace interface constant with _SESSION value 2020-06-07 14:25:28 +01:00
billz
b128c4106c Applied patches from #581 2020-05-24 08:14:07 +01:00
billz
a20db9185b Fix wifi client connect button. Resolves #572, thx @zbchristian 2020-04-30 12:42:31 +01:00
billz
457da91008 Processed with phpcbf 2020-02-15 17:57:46 +00:00
billz
f0ab44a9fe Minor: update comment 2019-10-15 21:06:07 +01:00
billz
8be24381a8 Processed with phpcbf for PSR-2 coding standard 2019-09-07 16:42:31 +01:00
glaszig
d7ee29aeee use template for configure client page 2019-08-19 22:37:22 +02:00
glaszig
1c8931c63b restore configuration of multiple networks
fucked up in 993dc633a9
2019-08-19 18:06:15 +02:00
Bill Zimmerman
5858971762
Merge pull request #372 from glaszig/ui/xhr-load-cached-wifi-stations
load wifi stations via ajax, cache the scan result
2019-08-17 09:53:13 +02:00
glaszig
993dc633a9 load wifi stations via ajax, cache the scan result
until the "rescan" button is pressed. speeds up
"configure client" page massively.
2019-08-08 03:44:28 +02:00
glaszig
c1da509053 remove superfluous, overly nested html (mainly bootstrap panels) 2019-08-07 23:16:56 +02:00
glaszig
f36b08c10a rename CSRFToken() to the more apt CSRFTokenFieldTag() 2019-08-06 20:55:16 +02:00
glaszig
0a255e8b49 don't write the csrf token field to the output buffer
but return and echo it
2019-08-06 20:55:16 +02:00
glaszig
87fe8948b8 remove splattered, duplicated csrf validation code
since we do that always and early, now.
2019-08-06 20:55:16 +02:00
glaszig
493269e061
enable wifi client to connect to hidden ssid
according to the docs:
For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.

and

scan_ssid:
	0 = do not scan this SSID with specific Probe Request frames (default)
	1 = scan with SSID-specific Probe Request frames (this can be used to
	    find APs that do not accept broadcast SSID or use multiple SSIDs;
	    this will add latency to scanning, so enable this only when needed)

https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf

see billz/raspap-webgui#345
2019-08-02 14:42:15 +02:00
billz
445ba5c36c Fix for auth protocols, thanks @furest. Fixed open wifi network form element. Resolves #326 2019-05-05 11:08:47 +00:00
billz
c0570b616e Processed with phpcs for PSR-2 coding standard 2019-04-10 08:37:35 +00:00
billz
6a01eed166 (re)fix of #188. Resolves #290 2019-03-01 09:49:15 +00:00
billz
6a9ffa36a6 Minor corrections to messages 2018-11-15 22:21:55 +00:00
billz
d2fc5e4213 Several enhancements, thanks @PRO2XY & @njkeng. Resolves #168, Resolves #261 2018-11-13 22:32:41 +00:00
D9ping
54e55775ea Fix incorrect escaping break lines of WPA and WPA2 secured networks.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-10-24 01:42:47 +02:00
D9ping
2b03fa316d Escape client input, console output etc. before doing any echo.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-04 02:05:56 +02:00
billz
ff4385753c Fixes #188. Thanks @bluthen 2018-06-12 17:08:27 +00:00
Bill Zimmerman
d8f4f15db8
Merge branch 'master' into i18n 2018-05-27 10:42:54 +02:00
billz
2a05284be6 Specifies interface with -i option and wpa_cli. Resolves #163 2018-03-28 10:09:58 +00:00
Russ Marshall
5c04c1dbca preserve priority in wpa_supplicant.conf 2018-02-25 09:08:21 -05:00
Emmanuel Geoffray
3228114dd8 add global to select wireless interface for wifi client 2017-12-07 19:00:48 +00:00
billz
03b5c6a695 Fixed typo. Thanks @bebora for catching it 2017-10-29 22:59:14 +00:00
billz
ff18f84fd8 Updated static labels with gettext() 2017-10-24 13:50:17 +00:00
Bill Zimmerman
0374e41b62 Fixed typo in message 2017-10-24 12:26:00 +02:00