From 4592cf32b3bc116300e88e63bdbd0884599618d5 Mon Sep 17 00:00:00 2001 From: andrewboyley Date: Tue, 16 Jan 2024 18:36:53 +0200 Subject: [PATCH] Replace all spaces in captive portal password --- airgeddon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airgeddon.sh b/airgeddon.sh index 82b2fc162..fa67594a5 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -11419,7 +11419,7 @@ function set_captive_portal_page() { POST_DATA=$(cat /dev/stdin) if [[ "${REQUEST_METHOD}" = "POST" ]] && [[ "${CONTENT_LENGTH}" -gt 0 ]]; then POST_DATA=${POST_DATA#*=} - password=${POST_DATA/+/ } + password=${POST_DATA//+/ } password=${password//[*&\/?<>]} password=$(printf '%b' "${password//%/\\x}") password=${password//[*&\/?<>]}