Skip to content

Commit

Permalink
Add control to know if the clients are alive (active on the network) …
Browse files Browse the repository at this point in the history
…during Evil Twin attacks
  • Loading branch information
v1s1t0r1sh3r3 committed Aug 15, 2024
1 parent 34fcf15 commit ccd09b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
15 changes: 12 additions & 3 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ internal_tools=(
"ccze"
"xset"
"loginctl"
"arping"
)

declare -A possible_package_names=(
Expand Down Expand Up @@ -11328,11 +11329,19 @@ function set_et_control_script() {
EOF

cat >&7 <<-EOF
if hash arping 2> /dev/null; then
if arping -c 3 -I "${interface}" -w 5 -q "\${client_ip}"; then
echo -ne " ${blue_color}${et_misc_texts[${language},29]}${green_color} ✓${normal_color}"
else
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}\n"
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}\n"
echo -ne " ${blue_color}${et_misc_texts[${language},28]}${red_color} ✘${normal_color}"
fi
echo -ne "\n"
EOF

cat >&7 <<-'EOF'
Expand All @@ -11341,7 +11350,7 @@ function set_et_control_script() {
done
fi
echo -ne "\033[K\033[u"
sleep 0.3
sleep 1
current_window_size="$(tput cols)x$(tput lines)"
if [ "${current_window_size}" != "${stored_window_size}" ]; then
stored_window_size="${current_window_size}"
Expand Down
14 changes: 14 additions & 0 deletions language_strings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,20 @@ function initialize_language_strings() {
et_misc_texts["ARABIC",28]="\${pending_of_translation} الوصول إلى البوابة"
et_misc_texts["CHINESE",28]="\${pending_of_translation} 门户访问"

et_misc_texts["ENGLISH",29]="Is alive"
et_misc_texts["SPANISH",29]="Está activo"
et_misc_texts["FRENCH",29]="\${pending_of_translation} Est actif"
et_misc_texts["CATALAN",29]="\${pending_of_translation} Està actiu"
et_misc_texts["PORTUGUESE",29]="\${pending_of_translation} Está ativo"
et_misc_texts["RUSSIAN",29]="\${pending_of_translation} Активен"
et_misc_texts["GREEK",29]="\${pending_of_translation} Είναι ενεργό"
et_misc_texts["ITALIAN",29]="\${pending_of_translation} È attivo"
et_misc_texts["POLISH",29]="\${pending_of_translation} Jest aktywny"
et_misc_texts["GERMAN",29]="\${pending_of_translation} Ist aktiv"
et_misc_texts["TURKISH",29]="\${pending_of_translation} Aktif"
et_misc_texts["ARABIC",29]="\${pending_of_translation} نشط"
et_misc_texts["CHINESE",29]="\${pending_of_translation} 处于活动状态"

declare -gA wps_texts
wps_texts["ENGLISH",0]="The password was saved on file"
wps_texts["SPANISH",0]="La contraseña se ha guardado en el fichero"
Expand Down

0 comments on commit ccd09b1

Please sign in to comment.