Skip to content

Commit

Permalink
Merge pull request #306 from v1s1t0r1sh3r3/dev
Browse files Browse the repository at this point in the history
Dev to master v9.23
  • Loading branch information
v1s1t0r1sh3r3 authored Sep 27, 2019
2 parents f9246dc + 737f3ca commit 8292971
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 38 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 9.23
- Fixed error printing hints
- Fixed problem with default values on options file creation

### 9.22
- Improved certificates validations and error messages
- Removed useless internet access DNS resolution method for captive portal Evil Twin, now pure dnsspoof
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ ENV HASHCAT2_URL="https://github.com/v1s1t0r1sh3r3/hashcat2.0.git"
ENV BETTERCAP162_URL="https://github.com/v1s1t0r1sh3r3/bettercap1.6.2.git"
ENV DEBIAN_FRONTEND="noninteractive"

#Update repo sources
RUN sed -i 's|parrot.sh|parrot.sh/mirrors|' /etc/apt/sources.list.d/parrot.list

#Update system
RUN apt update

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ All the needed info about how to "install | use | enjoy" `airgeddon` is present
[Hat Tip To]: https://github.com/v1s1t0r1sh3r3/airgeddon/wiki/Hat%20Tip%20To
[Inspiration]: https://github.com/v1s1t0r1sh3r3/airgeddon/wiki/Inspiration

[Version-shield]: https://img.shields.io/badge/version-9.22-blue.svg?style=flat-square&colorA=273133&colorB=0093ee "Latest version"
[Version-shield]: https://img.shields.io/badge/version-9.23-blue.svg?style=flat-square&colorA=273133&colorB=0093ee "Latest version"
[Bash4.2-shield]: https://img.shields.io/badge/bash-4.2%2B-blue.svg?style=flat-square&colorA=273133&colorB=00db00 "Bash 4.2 or later"
[License-shield]: https://img.shields.io/badge/license-GPL%20v3%2B-blue.svg?style=flat-square&colorA=273133&colorB=bd0000 "GPL v3+"
[Docker-shield]: https://img.shields.io/docker/automated/v1s1t0r1sh3r3/airgeddon.svg?style=flat-square&colorA=273133&colorB=f9ff5a "Docker rules!"
Expand Down
48 changes: 24 additions & 24 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#Title........: airgeddon.sh
#Description..: This is a multi-use bash script for Linux systems to audit wireless networks.
#Author.......: v1s1t0r
#Date.........: 20190908
#Version......: 9.22
#Date.........: 20190924
#Version......: 9.23
#Usage........: bash airgeddon.sh
#Bash Version.: 4.2 or later

Expand Down Expand Up @@ -115,8 +115,8 @@ declare -A possible_alias_names=(
)

#General vars
airgeddon_version="9.22"
language_strings_expected_version="9.22-1"
airgeddon_version="9.23"
language_strings_expected_version="9.23-1"
standardhandshake_filename="handshake-01.cap"
timeout_capture_handshake="20"
tmpdir="/tmp/"
Expand Down Expand Up @@ -323,7 +323,7 @@ known_arm_compatible_distros=(
declare main_hints=(128 134 163 437 438 442 445 516 590 626)
declare dos_hints=(129 131 133)
declare handshake_hints=(127 130 132 136)
declare handshake_dos_hints=(142)
declare dos_handshake_hints=(142)
declare decrypt_hints=(171 179 208 244 163)
declare personal_decrypt_hints=(171 178 179 208 244 163)
declare enterprise_decrypt_hints=(171 179 208 244 163 610)
Expand Down Expand Up @@ -2891,9 +2891,12 @@ function custom_certificates_integration() {
hostapd_wpe_cert_path="${scriptfolder}${hostapd_wpe_cert_path}"
fi

echo
language_strings "${language}" 329 "green"
read -rp "> " hostapd_wpe_cert_pass
hostapd_wpe_cert_pass=""
while [[ ! ${hostapd_wpe_cert_pass} =~ ^.{4,1023}$ ]]; do
echo
language_strings "${language}" 329 "green"
read -rp "> " hostapd_wpe_cert_pass
done
fi
else
hostapd_wpe_cert_path="${default_certs_path}"
Expand All @@ -2905,17 +2908,16 @@ function custom_certificates_integration() {
language_strings "${language}" 649 "blue"
echo

local certsresult
certsresult=$(validate_certificates "${hostapd_wpe_cert_path}" "${hostapd_wpe_cert_pass}")
if [ "${certsresult}" = "0" ]; then
validate_certificates "${hostapd_wpe_cert_path}" "${hostapd_wpe_cert_pass}"
if [ "$?" = "0" ]; then
language_strings "${language}" 650 "yellow"
language_strings "${language}" 115 "read"
return 0
elif [ "${certsresult}" = "1" ]; then
elif [ "$?" = "1" ]; then
language_strings "${language}" 237 "red"
language_strings "${language}" 115 "read"
return 1
elif [ "${certsresult}" = "2" ]; then
elif [ "$?" = "2" ]; then
language_strings "${language}" 326 "red"
language_strings "${language}" 115 "read"
return 1
Expand All @@ -2930,20 +2932,18 @@ function custom_certificates_integration() {
function validate_certificates() {

debug_print
local certsresult
certsresult=0

if ! [ -f "${1}server.pem" ] || ! [ -r "${1}server.pem" ] || ! [ -f "${1}ca.pem" ] || ! [ -r "${1}ca.pem" ] || ! [ -f "${1}server.key" ] || ! [ -r "${1}server.key" ]; then
certsresult=1
return 1
else
if ! openssl x509 -in "${1}server.pem" -inform "PEM" -checkend "0" &> "/dev/null" || ! openssl x509 -in "${1}ca.pem" -inform "PEM" -checkend "0" &> "/dev/null"; then
certsresult=2
return 2
elif ! openssl rsa -in "${1}server.key" -passin "pass:${2}" -check &> "/dev/null"; then
certsresult=3
return 3
fi
fi

echo "${certsresult}"
return 0
}

#Create custom certificates
Expand Down Expand Up @@ -8743,7 +8743,7 @@ function set_std_internet_routing_rules() {
if [ "${et_mode}" = "et_captive_portal" ]; then
if [ "${iptables_nftables}" -eq 1 ]; then
"${iptables_cmd}" add rule ip nat PREROUTING tcp dport 80 counter dnat to ${et_ip_router}:80
"${iptables_cmd}" add rule ip nat PREROUTING tcp dport 443 counter dnat to ${et_ip_router}:443
"${iptables_cmd}" add rule ip nat PREROUTING tcp dport 443 counter dnat to ${et_ip_router}:80
"${iptables_cmd}" add rule ip filter INPUT tcp dport 80 counter accept
"${iptables_cmd}" add rule ip filter INPUT tcp dport 443 counter accept
else
Expand Down Expand Up @@ -14062,8 +14062,8 @@ function env_vars_initialization() {
nonboolean_options_env_vars["${ordered_options_env_vars[9]},default_value"]="mdk4"
nonboolean_options_env_vars["${ordered_options_env_vars[12]},default_value"]="xterm"

nonboolean_options_env_vars["${ordered_options_env_vars[9]},rcfile_text"]="#Available values: mdk3, mdk4 - Define which mdk version is going to be used - Default value mdk4"
nonboolean_options_env_vars["${ordered_options_env_vars[12]},rcfile_text"]="#Available values: xterm, tmux - Define the needed tool to be used for windows handling - Default value xterm"
nonboolean_options_env_vars["${ordered_options_env_vars[9]},rcfile_text"]="#Available values: mdk3, mdk4 - Define which mdk version is going to be used - Default value ${nonboolean_options_env_vars[${ordered_options_env_vars[9]},'default_value']}"
nonboolean_options_env_vars["${ordered_options_env_vars[12]},rcfile_text"]="#Available values: xterm, tmux - Define the needed tool to be used for windows handling - Default value ${nonboolean_options_env_vars[${ordered_options_env_vars[12]},'default_value']}"

declare -gA boolean_options_env_vars
boolean_options_env_vars["${ordered_options_env_vars[0]},default_value"]="true"
Expand All @@ -14087,8 +14087,8 @@ function env_vars_initialization() {
boolean_options_env_vars["${ordered_options_env_vars[6]},rcfile_text"]="#Enabled true / Disabled false - Print help hints on menus - Default value ${boolean_options_env_vars[${ordered_options_env_vars[6]},'default_value']}"
boolean_options_env_vars["${ordered_options_env_vars[7]},rcfile_text"]="#Enabled true / Disabled false - Enable 5Ghz support (it has no effect if your cards are not 5Ghz compatible cards) - Default value ${boolean_options_env_vars[${ordered_options_env_vars[7]},'default_value']}"
boolean_options_env_vars["${ordered_options_env_vars[8]},rcfile_text"]="#Enabled true / Disabled false - Force to use iptables instead of nftables (it has no effect if nftables are not present) - Default value ${boolean_options_env_vars[${ordered_options_env_vars[8]},'default_value']}"
boolean_options_env_vars["${ordered_options_env_vars[10]},rcfile_text"]="#Enabled true / Disabled false - Development mode for faster development skipping intro and all initial checks - Default value ${boolean_options_env_vars[${ordered_options_env_vars[9]},'default_value']}"
boolean_options_env_vars["${ordered_options_env_vars[11]},rcfile_text"]="#Enabled true / Disabled false - Debug mode for development printing debug information - Default value ${boolean_options_env_vars[${ordered_options_env_vars[10]},'default_value']}"
boolean_options_env_vars["${ordered_options_env_vars[10]},rcfile_text"]="#Enabled true / Disabled false - Development mode for faster development skipping intro and all initial checks - Default value ${boolean_options_env_vars[${ordered_options_env_vars[10]},'default_value']}"
boolean_options_env_vars["${ordered_options_env_vars[11]},rcfile_text"]="#Enabled true / Disabled false - Debug mode for development printing debug information - Default value ${boolean_options_env_vars[${ordered_options_env_vars[11]},'default_value']}"

readarray -t ENV_VARS_ELEMENTS < <(printf %s\\n "${!nonboolean_options_env_vars[@]} ${!boolean_options_env_vars[@]}" | cut -d, -f1 | sort -u)
readarray -t ENV_BOOLEAN_VARS_ELEMENTS < <(printf %s\\n "${!boolean_options_env_vars[@]}" | cut -d, -f1 | sort -u)
Expand Down
Binary file removed binaries/arch/airgeddon-git-9.22-1-any.pkg.tar.xz
Binary file not shown.
Binary file not shown.
Binary file removed binaries/kali/airgeddon_9.22-1_all.deb
Binary file not shown.
Binary file added binaries/kali/airgeddon_9.23-1_all.deb
Binary file not shown.
Binary file modified imgs/wiki/airgeddon_scrs1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion known_pins.db
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#Title........: known_pins.db
#Description..: This is a WPS PIN database for routers that generate generic passwords.
#Author.......: v1s1t0r
#Date.........: 20190822
#Date.........: 20190918
#Bash Version.: 4.2 or later

#Set PIN database. Keys are the first 6 bssid digits and are ordered
Expand Down Expand Up @@ -404,6 +404,7 @@ function set_pin_database() {
PINDB["C43DC7"]="82234515 63753349 20388560 20205287 51419981"
PINDB["C46E1F"]="11695059 73307334 36545780"
PINDB["C4E984"]="72914908 79016018 84847621"
PINDB["C4EA1D"]="43876969"
PINDB["C528D2"]="95685656"
PINDB["C81760"]="12345678"
PINDB["C83A35"]="28818885 01756401 11195207 11203124 11210085 11214809 11215042 11213840 11194569 11195764 11214885 11216643 05365852 48343763 61724242 12345678 60641687 15002648 61436800 18698800 02814087 38015687 23664173 62047043 11651123"
Expand Down
Loading

0 comments on commit 8292971

Please sign in to comment.