Skip to content

Commit

Permalink
Improvements on 5Ghz country code check
Browse files Browse the repository at this point in the history
  • Loading branch information
v1s1t0r1sh3r3 committed Mar 15, 2024
1 parent 12d96f1 commit 8f0b8d2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 11.30
- Improvements on 5Ghz country code check

### 11.22
- Possibility to add manually ESSID name for selected hidden networks
- Improvement on process killing on Evil Twin attacks
Expand Down
6 changes: 4 additions & 2 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ function region_check() {
debug_print

country_code="$(iw reg get | awk 'FNR == 2 {print $2}' | cut -f 1 -d ":" 2> /dev/null)"
[[ ! ${country_code} =~ ^[A-Z]{2}$ ]] && country_code="00"
[[ ! ${country_code} =~ ^[A-Z]{2}$|^99$ ]] && country_code="00"
}

#Prepare monitor mode avoiding the use of airmon-ng or airmon-zc generating two interfaces from one
Expand Down Expand Up @@ -13933,7 +13933,9 @@ function et_prerequisites() {
if [ "${channel}" -gt 14 ]; then
echo
if [ "${country_code}" = "00" ]; then
language_strings "${language}" 706 "blue"
language_strings "${language}" 706 "yellow"
elif [ "${country_code}" = "99" ]; then
language_strings "${language}" 719 "yellow"
else
language_strings "${language}" 392 "blue"
fi
Expand Down
Loading

0 comments on commit 8f0b8d2

Please sign in to comment.