From 78e3c117f91f902ffc10a583a8948370da587930 Mon Sep 17 00:00:00 2001 From: v1s1t0r1sh3r3 Date: Tue, 13 Aug 2024 22:59:33 +0200 Subject: [PATCH] Fix problem on PMKID capture generated after last commit changes. Add validation to avoid trying get PMKID on 5ghz channels using a non-5ghz capable adapter --- airgeddon.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/airgeddon.sh b/airgeddon.sh index a87603524..fec0b1da8 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -12802,6 +12802,15 @@ function capture_pmkid_handshake() { return 1 fi + if [ "${channel}" -gt 14 ]; then + if [ "${interfaces_band_info['main_wifi_interface','5Ghz_allowed']}" -eq 0 ]; then + echo + language_strings "${language}" 515 "red" + language_strings "${language}" 115 "read" + return 1 + fi + fi + if ! validate_network_encryption_type "WPA"; then return 1 fi @@ -13416,7 +13425,7 @@ function launch_pmkid_capture() { tcpdump -i "${interface}" wlan addr3 "${bssid}" -ddd > "${tmpdir}pmkid.bpf" - if [ "${interfaces_band_info['main_wifi_interface','5Ghz_allowed']}" -eq 0 ]; then + if [ "${channel}" -gt 14 ]; then hcxdumptool_band_modifier="b" else hcxdumptool_band_modifier="a"