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]}