Skip to content

Commit

Permalink
Fix some indentations and a useless empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
v1s1t0r1sh3r3 committed Oct 16, 2024
1 parent 956d429 commit dc812db
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3714,8 +3714,7 @@ function set_wep_key_script() {
echo ""
echo -e "ASCII: \${wep_ascii_key}"
echo -en "${wep_texts[${language},3]}:"
echo -en " \${wep_hex_key}"
echo ""
echo -e " \${wep_hex_key}"
echo ""
echo "---------------"
echo ""
Expand Down Expand Up @@ -3955,23 +3954,23 @@ function set_wep_script() {
wep_script_processes+=("\${wep_chopchop_phase2_pid}")
wep_chopchop_phase=3
;;
3)
wep_chopchop_phase2_pid_alive=\$(ps uax | awk '{print \$2}' | grep -E "^\${wep_chopchop_phase2_pid}$" 2> /dev/null)
if [[ -z "\${wep_chopchop_phase2_pid_alive}" ]] && [[ -f "${tmpdir}${wepdir}chopchop.cap" ]]; then
kill_tmux_window_by_name "Chop-Chop Attack (2/3)"
manage_output "-hold -bg \"#000000\" -fg \"#8B4513\" -geometry ${g5_left7} -T \"Chop-Chop Attack (3/3)\"" "yes | aireplay-ng -2 -F -r \"${tmpdir}${wepdir}chopchop.cap\" ${interface}" "Chop-Chop Attack (3/3)"

if [ "\${AIRGEDDON_WINDOWS_HANDLING}" = "tmux" ]; then
get_tmux_process_id "aireplay-ng -2 -F -r \"${tmpdir}${wepdir}chopchop.cap\" ${interface}"
wep_script_processes+=("\${global_process_pid}")
global_process_pid=""
else
wep_script_processes+=("\$!")
fi
3)
wep_chopchop_phase2_pid_alive=\$(ps uax | awk '{print \$2}' | grep -E "^\${wep_chopchop_phase2_pid}$" 2> /dev/null)
if [[ -z "\${wep_chopchop_phase2_pid_alive}" ]] && [[ -f "${tmpdir}${wepdir}chopchop.cap" ]]; then
kill_tmux_window_by_name "Chop-Chop Attack (2/3)"
manage_output "-hold -bg \"#000000\" -fg \"#8B4513\" -geometry ${g5_left7} -T \"Chop-Chop Attack (3/3)\"" "yes | aireplay-ng -2 -F -r \"${tmpdir}${wepdir}chopchop.cap\" ${interface}" "Chop-Chop Attack (3/3)"

wep_chopchop_phase=4
if [ "\${AIRGEDDON_WINDOWS_HANDLING}" = "tmux" ]; then
get_tmux_process_id "aireplay-ng -2 -F -r \"${tmpdir}${wepdir}chopchop.cap\" ${interface}"
wep_script_processes+=("\${global_process_pid}")
global_process_pid=""
else
wep_script_processes+=("\$!")
fi
;;

wep_chopchop_phase=4
fi
;;
esac
write_wep_processes
}
Expand Down

0 comments on commit dc812db

Please sign in to comment.