From 578c65af9438dc0d6856bda87c6881ffe0c48278 Mon Sep 17 00:00:00 2001 From: underscrew Date: Fri, 12 Jan 2018 21:46:11 -0200 Subject: [PATCH] Remove disallowed characters in ssid --- fluxion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluxion.sh b/fluxion.sh index 5df5f24..0388588 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -664,7 +664,7 @@ function fluxion_set_target_ap() { # Parse any non-ascii characters by letting bash handle them. # Just escape all single quotes in ESSID and let bash's $'...' handle it. - local sanitizedESSID=$(echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14) + local sanitizedESSID=$(echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14 | tr -d "'" | tr -d "\"" | tr -d "<" | tr -d ">" | tr -d "&") TargetAPCandidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'") local power=${TargetAPCandidatesPower[i]}