Skip to content

Commit

Permalink
Fix small bug. Message showing portal access during any Evil Twin non…
Browse files Browse the repository at this point in the history
…-captive portal attack is now removed.
  • Loading branch information
v1s1t0r1sh3r3 committed Aug 15, 2024
1 parent ccd09b1 commit 9159f64
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11336,10 +11336,12 @@ function set_et_control_script() {
echo -ne " ${blue_color}${et_misc_texts[${language},29]}${red_color} ✘${normal_color}"
fi
fi
if grep -qE "^\${client_ip} 200 GET /${pixelfile}" "${tmpdir}${webserver_log}" > /dev/null 2>&1; then
echo -ne " ${blue_color}${et_misc_texts[${language},28]}${green_color} ✓${normal_color}"
else
echo -ne " ${blue_color}${et_misc_texts[${language},28]}${red_color} ✘${normal_color}"
if [ "\${et_heredoc_mode}" = "et_captive_portal" ]; then
if grep -qE "^\${client_ip} 200 GET /${pixelfile}" "${tmpdir}${webserver_log}" > /dev/null 2>&1; then
echo -ne " ${blue_color}${et_misc_texts[${language},28]}${green_color} ✓${normal_color}"
else
echo -ne " ${blue_color}${et_misc_texts[${language},28]}${red_color} ✘${normal_color}"
fi
fi
echo -ne "\n"
EOF
Expand Down

0 comments on commit 9159f64

Please sign in to comment.