From 0eacffce0e26ce242d377b3cbe161664ec1fd95b Mon Sep 17 00:00:00 2001 From: v1s1t0r1sh3r3 Date: Mon, 2 Sep 2024 22:13:03 +0200 Subject: [PATCH] Adapt arping feature to work also for BlackArch special package (binary called arping-th) --- airgeddon.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/airgeddon.sh b/airgeddon.sh index da804f506..3fedc26ec 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -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}" @@ -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 @@ -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="" }