Skip to content

Commit

Permalink
Adapt arping feature to work also for BlackArch special package (bina…
Browse files Browse the repository at this point in the history
…ry called arping-th)
  • Loading branch information
v1s1t0r1sh3r3 committed Sep 2, 2024
1 parent 5d51ca2 commit 0eacffc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11321,7 +11321,7 @@ function set_et_control_script() {

cat >&7 <<-EOF
if [ "${right_arping}" -eq 1 ]; then
if arping -C 3 -I "${interface}" -w 5 -p -q "\${client_ip}"; then
if "${right_arping_command}" -C 3 -I "${interface}" -w 5 -p -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}"
Expand Down Expand Up @@ -14269,7 +14269,10 @@ function et_prerequisites() {
fi
fi

if hash arping 2> /dev/null; then
if hash arping-th 2> /dev/null; then
right_arping=1
right_arping_command="arping-th"
elif hash arping 2> /dev/null; then
if check_right_arping; then
right_arping=1
else
Expand Down Expand Up @@ -15990,6 +15993,7 @@ function initialize_script_settings() {
country_code="00"
clean_all_iptables_nftables=1
right_arping=0
right_arping_command="arping"
capture_traps_in_progress=""
}

Expand Down

0 comments on commit 0eacffc

Please sign in to comment.