Skip to content

Commit

Permalink
Fix problem on PMKID capture generated after last commit changes. Add…
Browse files Browse the repository at this point in the history
… validation to avoid trying get PMKID on 5ghz channels using a non-5ghz capable adapter
  • Loading branch information
v1s1t0r1sh3r3 committed Aug 13, 2024
1 parent 09bf23a commit 78e3c11
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 78e3c11

Please sign in to comment.