Skip to content

Commit

Permalink
v3.34
Browse files Browse the repository at this point in the history
  • Loading branch information
v1s1t0r1sh3r3 committed May 29, 2016
1 parent 0e970fa commit 207e9e8
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Tested on these compatible Linux distros:<br>
*-Ubuntu/Xubuntu 15.10 and 16.04*<br>
*-OpenSUSE Leap 42.1*<br>
*-CentOS 6 and 7*<br>
*-Gentoo 20160514*<br>
*-Fedora 24*<br>
*-Red Hat 7 (Maipo)*<br>
<br>
Anyway, can be used with any Linux distro if you have installed the tools what script needs. The script checks for them at the beginning.<br><br>
Essential tools: <- *the script doesn't work if you don't have installed all of them*<br>
Expand Down
76 changes: 69 additions & 7 deletions airgeddon.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

airgeddon_version="3.33"
airgeddon_version="3.34"

#Language vars
#Change these lines to select another default language
Expand Down Expand Up @@ -36,7 +36,7 @@ resume_message=224
abort_question=12

#Distros vars
known_compatible_distros=("Wifislax" "Kali" "Parrot" "Backbox" "Blackarch" "Cyborg" "Ubuntu" "Debian" "SUSE" "CentOS")
known_compatible_distros=("Wifislax" "Kali" "Parrot" "Backbox" "Blackarch" "Cyborg" "Ubuntu" "Debian" "SUSE" "CentOS" "Gentoo" "Fedora" "Red Hat")

#Hint vars
declare main_hints=(128 134 163)
Expand All @@ -59,6 +59,7 @@ blue_color="\033[1;34m"
yellow_color="\033[1;33m"
pink_color="\033[1;35m"
normal_color="\e[1;0m"
green_blink="\033[1;5m"

function language_strings() {

Expand Down Expand Up @@ -1421,7 +1422,7 @@ function managed_option() {
ifconfig ${interface} up

new_interface=$(${airmon} stop ${interface} 2> /dev/null | grep station)
[[ ${new_interface} =~ ^(.*)\]+([a-zA-Z0-9]+)\)?$ ]] && new_interface="${BASH_REMATCH[2]}"
[[ ${new_interface} =~ ^(.*on[[:space:]])(\[.*\])?([a-zA-Z0-9]+)\)?$ ]] && new_interface="${BASH_REMATCH[3]}"

if [ "$interface" != "$new_interface" ]; then
echo
Expand Down Expand Up @@ -1462,7 +1463,7 @@ function monitor_option() {
fi

new_interface=$(${airmon} start ${interface} 2> /dev/null | grep monitor)
[[ ${new_interface} =~ ^(.*)\]+([a-zA-Z0-9]+)\)?$ ]] && new_interface="${BASH_REMATCH[2]}"
[[ ${new_interface} =~ ^(.*on[[:space:]])(\[.*\])?([a-zA-Z0-9]+)\)?$ ]] && new_interface="${BASH_REMATCH[3]}"

if [ "$interface" != "$new_interface" ]; then
echo
Expand Down Expand Up @@ -3156,6 +3157,12 @@ function detect_distro_phase2() {
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}"redhat-release" ]; then
distro="Red Hat"
elif [ -f ${osversionfile_dir}"SuSE-release" ]; then
distro="SUSE"
fi
Expand All @@ -3168,7 +3175,7 @@ function special_distro_features() {
"Wifislax")
networkmanager_cmd="service restart networkmanager"
;;
"SUSE"|"CentOS")
"SUSE"|"CentOS"|"Gentoo"|"Fedora"|"Red Hat")
networkmanager_cmd="service NetworkManager restart"
;;
*)
Expand Down Expand Up @@ -3360,9 +3367,64 @@ function print_intro() {
sleep 0.15 && echo -e " / __ \| || | \/ /_/ > ___// /_/ / /_/ ( <_> ) | \\"
sleep 0.15 && echo -e " (____ /__||__| \___ / \___ >____ \____ |\____/|___| /"
sleep 0.15 && echo -e " \/ /_____/ \/ \/ \/ \/"${normal_color}
echo
echo -e ${green_blink}
language_strings ${language} 228 "green"
sleep 3
print_animated_flying_saucer
sleep 1
}

function flying_saucer() {

case $1 in
1)
echo " "
echo " . * _.---._ * "
echo " .' '. . "
echo " _.-~===========~-._ *"
echo " * (___________________) . "
echo " . . \_______/ * "
;;
2)
echo " * . _.---._ . "
echo " * .' '. . "
echo " _.-~===========~-._ * "
echo " . (___________________) * "
echo " * \_______/ . "
echo " "
;;
3)
echo " * . "
echo " * _.---._ * "
echo " . .' '. * "
echo " . _.-~===========~-._ * "
echo " (___________________) ."
echo " * \_______/ . "
;;
4)
echo " * . _.---._ . "
echo " * .' '. . "
echo " _.-~===========~-._ * "
echo " . (___________________) * "
echo " * \_______/ . "
echo " "
;;
esac
sleep 0.4
}

function print_animated_flying_saucer() {

echo -e "\033[s"

for i in `seq 1 8`; do
if [ ${i} -le 4 ]; then
saucer_frame=${i}
else
saucer_frame=$(($i-4))
fi
echo -e "\033[u"
flying_saucer ${saucer_frame}
done
}

function welcome() {
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3.34
Ascii art intro added on script startup (animated flying saucer!!)
Bug fixed after putting card in monitor mode and the card name changed on some distros
Compatibility extended to Gentoo, Fedora and Red Hat Linux

3.33
Bug fixed relaunching script after donwload a new version
Credits beautified
Expand Down

0 comments on commit 207e9e8

Please sign in to comment.