Skip to content

Commit

Permalink
v4.03
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarAkaElvis authored and v1s1t0r1sh3r3 committed Aug 20, 2016
1 parent 4f12a3d commit 2d73ba6
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This is a multi-use bash script for Linux systems to audit wireless networks.<br
Bash version 4.0 or later needed.<br/>
<br/>
Tested on these compatible Linux distros:<br/>
*-Kali 2.0 and 2016.1*<br/>
*-Kali 2.0, 2016.1 and arm versions (Raspberry Pi)*<br/>
*-Wifislax 4.11.1 and 4.12*<br/>
*-Backbox 4.5.1 and 4.6*<br/>
*-Parrot 2.2.1 and 3.1.1*<br/>
Expand All @@ -36,7 +36,8 @@ Tested on these compatible Linux distros:<br/>
*-Fedora 24*<br/>
*-Red Hat 7 (Maipo)*<br/>
*-Arch 4.6.2-1*<br/>
*-Raspbian 7 (Wheezy) and 8 (Jessie)*<br/>
*-Raspbian 7 (Wheezy) and 8 (Jessie) (Raspberry Pi)*<br/>
*-OpenMandriva LX3*<br/>
<br/>
It's already available in <a href="https://archstrike.org/wiki" target="_blank">ArchStrike</a> repositories used by some distros based on Arch Linux.<br/>
Repositories versions will have auto-update feature disabled in order to avoid breaking dependencies. There is a var at the beginning of the file, *"auto_update"* can be set to 0 to turn off the auto-update feature.<br/>
Expand Down Expand Up @@ -69,6 +70,14 @@ Update tools: <- *not necessary to work, only used for auto-update*<br/>
```
curl -> curl
```
Internal tools: <- *these are internally checked. Not necessary to work, good to have*<br/>
```
xdpyinfo -> x11-utils / xdpyinfo / xorg-xdpyinfo
ethtool -> ethtool
lspci -> pciutils
rfkill -> rfkill
```
The internal tools are highly recommended to have them installed. They improve functionality and performance. For example, xdpyinfo allow the script to detect the desktop resolution in order to print windows in a better way.

#Known incompatibilities
Impossible compatibility for Mac OSX at the moment. Some reasons:<br/>
Expand Down
43 changes: 37 additions & 6 deletions airgeddon.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

airgeddon_version="4.02"
airgeddon_version="4.03"

#Enabled 1 / Disabled 0 - Debug mode for faster development skipping intro and initial checks - Default value 0
debug_mode=0
Expand Down Expand Up @@ -126,19 +126,21 @@ possible_dhcp_leases_files=(
known_compatible_distros=(
"Wifislax"
"Kali"
"Kali arm"
"Parrot"
"Backbox"
"Blackarch"
"Cyborg"
"Ubuntu"
"Raspbian"
"Debian"
"SUSE"
"SuSE"
"CentOS"
"Gentoo"
"Fedora"
"Red Hat"
"Arch"
"OpenMandriva"
)

#Hint vars
Expand Down Expand Up @@ -2068,6 +2070,12 @@ function language_strings() {
arr["catalan",300]="Si fas que funcioni en el teu sistema l'ordre xdpyinfo, el script podrà calcular la teva resolució de pantalla i mostrar-te les finestres de forma més optimitzada. Depenent del sistema el paquet pot dir-se x11-utils, xdpyinfo, xorg-xdpyinfo, etc."
arr["portuguese",300]="$pending_of_translation Se você fizer o comando xdpyinfo para trabalhar em seu sistema, o script irá calcular a sua resolução de tela e janelas de mostra de uma forma mais otimizada. Dependendo do sistema, o pacote pode ser chamado X11-utils, xdpyinfo, xorg-xdpyinfo, etc."

arr["english",301]="Despite having all essential tools installed, your system uses airmon-zc instead of airmon-ng. In order to work properly you need to install lspci (pciutils) and you don't have it right now. Please, install it and launch the script again"
arr["spanish",301]="A pesar de tener todas las herramientas esenciales instaladas, tu sistema usa airmon-zc en lugar de airmon-ng. Para poder funcionar necesitas tener instalado lspci (pciutils) y tú no lo tienes en este momento. Por favor, instálalo y vuelve a lanzar el script"
arr["french",301]="En dépit d'avoir tous les outils essentiels installés votre système utilise airmon-zc au lieu de airmon-ng. Vous devez installer lspci (pciutils) que vous n'avez pas à ce moment. S'il vous plaît, installez-le et relancez le script"
arr["catalan",301]="Tot i tenir totes les eines essencials instal·lades, el teu sistema fa servir airmon-zc en lloc del airmon-ng. Per poder funcionar necessites tenir instal·lat lspci (pciutils) i tu no el tens en aquest moment. Si us plau, instal·la-ho i torna a executar el script"
arr["portuguese",247]="$pending_of_translation Apesar de ter todas as ferramentas essenciais instalado, o sistema utiliza airmon-zc vez de airmon-ng. Para funcionar você precisa instalar lspci (pciutils) e você não tem neste momento. Por favor, instale e execute o script novamente"

case "$3" in
"yellow")
interrupt_checkpoint ${2} ${3}
Expand Down Expand Up @@ -5231,17 +5239,26 @@ function detect_distro_phase1() {

function detect_distro_phase2() {

if [ "$distro" = "Kali" ]; then
uname -m | grep "arm" > /dev/null
if [ "$?" = "0" ]; then
distro="Kali arm"
fi
fi

if [ "$distro" = "Unknown Linux" ]; then
if [ -f ${osversionfile_dir}"centos-release" ]; then
distro="CentOS"
elif [ -f ${osversionfile_dir}"fedora-release" ]; then
distro="Fedora"
elif [ -f ${osversionfile_dir}"gentoo-release" ]; then
distro="Gentoo"
elif [ -f ${osversionfile_dir}"openmandriva-release" ]; then
distro="OpenMandriva"
elif [ -f ${osversionfile_dir}"redhat-release" ]; then
distro="Red Hat"
elif [ -f ${osversionfile_dir}"SuSE-release" ]; then
distro="SUSE"
distro="SuSE"
elif [ -f ${osversionfile_dir}"debian_version" ]; then
distro="Debian"
if [ -f ${osversionfile_dir}"os-release" ]; then
Expand Down Expand Up @@ -5278,7 +5295,7 @@ function special_distro_features() {
ywindow_edge_lines=2
ywindow_edge_pixels=18
;;
"Kali")
"Kali"|"Kali arm")
networkmanager_cmd="service network-manager restart"
xratio=6.2
yratio=13.9
Expand All @@ -5292,7 +5309,7 @@ function special_distro_features() {
ywindow_edge_lines=2
ywindow_edge_pixels=14
;;
"SUSE")
"SuSE")
networkmanager_cmd="service NetworkManager restart"
xratio=6.2
yratio=13.9
Expand Down Expand Up @@ -5360,7 +5377,14 @@ function special_distro_features() {
xratio=6.2
yratio=14
ywindow_edge_lines=1
ywindow_edge_pixels=0
ywindow_edge_pixels=20
;;
"OpenMandriva")
networkmanager_cmd="systemctl restart NetworkManager.service"
xratio=6.2
yratio=14
ywindow_edge_lines=2
ywindow_edge_pixels=-10
;;
esac
}
Expand Down Expand Up @@ -5797,6 +5821,13 @@ function airmonzc_security_check() {
language_strings ${language} 115 "read"
exit_code=1
exit_script_option
elif ! hash lspci 2> /dev/null; then
echo
language_strings ${language} 301 "yellow"
echo
language_strings ${language} 115 "read"
exit_code=1
exit_script_option
fi
fi
}
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
4.03
Some compatibility improvements for Raspberry Pi Raspbian Linux
Additional check for systems which use airmon-zc, now checks for lspci to avoid errors
Compatibility extended to OpenMandriva Linux
Compatibility extended to Kali arm version on Raspberry Pi

4.02
New windows sizes calculation method for better viewing even in small resolutions. Dynamic system.
Fixed bug restarting Network Manager on Arch Linux
Expand Down

0 comments on commit 2d73ba6

Please sign in to comment.