2016-05-06 06:49:31 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
INSTALLER_DEBUG=1
|
|
|
|
#Config
|
|
|
|
version=2
|
|
|
|
revision=3
|
|
|
|
#Colors
|
|
|
|
red='\e[1;31m'
|
|
|
|
blue='\e[1;34m'
|
|
|
|
yellow='\e[1;33m'
|
|
|
|
transparent="\e[0m"
|
|
|
|
|
|
|
|
#DUMP_PATH
|
|
|
|
rm -rf /tmp/Installer/
|
|
|
|
mkdir /tmp/Installer/
|
|
|
|
DUMP_PATH="/tmp/Installer/"
|
|
|
|
|
|
|
|
function conditional_clear() {
|
|
|
|
|
|
|
|
if [[ "$INSTALLER_output_device" != "/dev/stdout" ]]; then clear; fi
|
|
|
|
}
|
|
|
|
|
|
|
|
#Config_END
|
|
|
|
if [ $INSTALLER_DEBUG = 1 ]; then
|
|
|
|
## Developer Mode
|
|
|
|
export INSTALLER_output_device=/dev/stdout
|
|
|
|
HOLD="-hold"
|
|
|
|
else
|
|
|
|
## Normal Mode
|
|
|
|
export INSTALLER_output_device=/dev/null
|
|
|
|
HOLD=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
#Check root
|
|
|
|
if [[ $EUID -ne 0 ]]; then
|
|
|
|
echo -e "\e[1;31mYou don't have admin privilegies, execute the script as root."$transparent
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
|
|
|
|
function mostrarheader(){
|
|
|
|
|
|
|
|
|
|
|
|
echo -e "$blue#########################################################"
|
|
|
|
echo -e "$blue# #"
|
|
|
|
echo -e "$blue# $red FLUXION $version" "${yellow} ${red} < F""${yellow}luxion" "${red}I""${yellow}s" "${red}T""${yellow}he ""${red}F""${yellow}uture > " ${blue}" #"
|
|
|
|
echo -e "$blue#"${yellow} by "${red}D""${yellow}eltax", "${red}"S""${yellow}"trasharo and "${red}A""${yellow}patheticEuphoria" " ${blue}#""
|
|
|
|
echo -e "$blue# #"
|
|
|
|
echo -e "$blue#########################################################""$transparent"
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function setresolution {
|
|
|
|
|
|
|
|
function resA {
|
|
|
|
|
|
|
|
TOPLEFT="-geometry 90x13+0+0"
|
|
|
|
TOPRIGHT="-geometry 83x26-0+0"
|
|
|
|
BOTTOMLEFT="-geometry 90x24+0-0"
|
|
|
|
BOTTOMRIGHT="-geometry 75x12-0-0"
|
|
|
|
TOPLEFTBIG="-geometry 91x42+0+0"
|
|
|
|
TOPRIGHTBIG="-geometry 83x26-0+0"
|
|
|
|
}
|
|
|
|
|
|
|
|
function resB {
|
|
|
|
|
|
|
|
TOPLEFT="-geometry 92x14+0+0"
|
|
|
|
TOPRIGHT="-geometry 68x25-0+0"
|
|
|
|
BOTTOMLEFT="-geometry 92x36+0-0"
|
|
|
|
BOTTOMRIGHT="-geometry 74x20-0-0"
|
|
|
|
TOPLEFTBIG="-geometry 100x52+0+0"
|
|
|
|
TOPRIGHTBIG="-geometry 74x30-0+0"
|
|
|
|
}
|
|
|
|
function resC {
|
|
|
|
|
|
|
|
TOPLEFT="-geometry 100x20+0+0"
|
|
|
|
TOPRIGHT="-geometry 109x20-0+0"
|
|
|
|
BOTTOMLEFT="-geometry 100x30+0-0"
|
|
|
|
BOTTOMRIGHT="-geometry 109x20-0-0"
|
|
|
|
TOPLEFTBIG="-geometry 100x52+0+0"
|
|
|
|
TOPRIGHTBIG="-geometry 109x30-0+0"
|
|
|
|
}
|
|
|
|
function resD {
|
|
|
|
TOPLEFT="-geometry 110x35+0+0"
|
|
|
|
TOPRIGHT="-geometry 99x40-0+0"
|
|
|
|
BOTTOMLEFT="-geometry 110x35+0-0"
|
|
|
|
BOTTOMRIGHT="-geometry 99x30-0-0"
|
|
|
|
TOPLEFTBIG="-geometry 110x72+0+0"
|
|
|
|
TOPRIGHTBIG="-geometry 99x40-0+0"
|
|
|
|
}
|
|
|
|
function resE {
|
|
|
|
TOPLEFT="-geometry 130x43+0+0"
|
|
|
|
TOPRIGHT="-geometry 68x25-0+0"
|
|
|
|
BOTTOMLEFT="-geometry 130x40+0-0"
|
|
|
|
BOTTOMRIGHT="-geometry 132x35-0-0"
|
|
|
|
TOPLEFTBIG="-geometry 130x85+0+0"
|
|
|
|
TOPRIGHTBIG="-geometry 132x48-0+0"
|
|
|
|
}
|
|
|
|
function resF {
|
|
|
|
TOPLEFT="-geometry 100x17+0+0"
|
|
|
|
TOPRIGHT="-geometry 90x27-0+0"
|
|
|
|
BOTTOMLEFT="-geometry 100x30+0-0"
|
|
|
|
BOTTOMRIGHT="-geometry 90x20-0-0"
|
|
|
|
TOPLEFTBIG="-geometry 100x70+0+0"
|
|
|
|
TOPRIGHTBIG="-geometry 90x27-0+0"
|
|
|
|
}
|
|
|
|
|
|
|
|
detectedresolution=$(xdpyinfo | grep -A 3 "screen #0" | grep dimensions | tr -s " " | cut -d" " -f 3)
|
|
|
|
## A) 1024x600
|
|
|
|
## B) 1024x768
|
|
|
|
## C) 1280x768
|
|
|
|
## D) 1280x1024
|
|
|
|
## E) 1600x1200
|
|
|
|
case $detectedresolution in
|
|
|
|
"1024x600" ) resA ;;
|
|
|
|
"1024x768" ) resB ;;
|
|
|
|
"1280x768" ) resC ;;
|
|
|
|
"1366x768" ) resC ;;
|
|
|
|
"1280x1024" ) resD ;;
|
|
|
|
"1600x1200" ) resE ;;
|
|
|
|
"1366x768" ) resF ;;
|
|
|
|
* ) resA ;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
#Install Main
|
|
|
|
conditional_clear
|
|
|
|
mostrarheader
|
|
|
|
|
2016-05-06 06:49:31 -06:00
|
|
|
echo "Updating system..."
|
2016-06-12 09:48:26 -06:00
|
|
|
sudo apt-get update> /dev/null 2>&1
|
2016-06-12 09:50:08 -06:00
|
|
|
sudo apt-get install xterm > /dev/null 2>&1
|
2016-06-12 09:40:40 -06:00
|
|
|
xterm $HOLD -title "Updating System" -e apt-get update
|
|
|
|
xterm $HOLD -title "Updating System" -e apt-get install
|
|
|
|
xterm $HOLD -title "Updating System" -e apt-get install software-properties-common
|
|
|
|
xterm $HOLD -title "Updating System" -e python remove.py
|
|
|
|
xterm $HOLD -title "Updating System" -e python add.py
|
|
|
|
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
|
|
|
echo -ne "Aircrack-ng....."
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash aircrack-ng 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent
|
|
|
|
xterm $HOLD -title "Installing Aircrack-ng" -e apt-get --yes install aircrack-ng
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
2016-02-21 02:56:15 -07:00
|
|
|
fi
|
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
|
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Aireplay-ng....."
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash awk 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Awk" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install gawk
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
2016-02-21 02:56:15 -07:00
|
|
|
fi
|
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Airodump-ng....."
|
|
|
|
if ! hash airodump-ng 2>/dev/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Airodump-ng" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install aircrack-ng
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
|
|
|
fi
|
|
|
|
##############################
|
|
|
|
echo -ne "Bully..........."
|
|
|
|
if ! hash bully 2>/dev/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Bully" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install bully
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
2016-02-21 02:56:15 -07:00
|
|
|
fi
|
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Curl............"
|
|
|
|
if ! hash curl 2>/dev/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Curl" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install curl
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
##############################
|
2016-05-06 06:49:31 -06:00
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Dhcpd..........."
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash dhcpd 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Dhcpd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000"-e apt-get --yes install isc-dhcp-server
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Hostapd........."
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash hostapd 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Hostapd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install hostapd
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Iwconfig........"
|
|
|
|
if ! hash iwconfig 2>/dev/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Iwconfig" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install iwconfig
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
##############################
|
|
|
|
echo -ne "Lighttpd........"
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash lighttpd 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Lighttpd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install lighttpd
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Macchanger......"
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash macchanger 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Macchanger" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install macchanger
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Mdk3............"
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash mdk3 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Macchanger" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install mdk3
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-06-12 09:40:40 -06:00
|
|
|
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Nmap............"
|
2016-05-06 06:49:31 -06:00
|
|
|
if ! hash nmap 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Nmap" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install --yes nmap
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Openssl........."
|
|
|
|
if ! hash openssl 2>/tmp/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Openssl" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e openssl
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
##############################
|
|
|
|
echo -ne "Php5-cgi........"
|
2016-05-06 06:49:31 -06:00
|
|
|
if ! hash php-cgi 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Php5-cgi" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install php5-cgi
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Pyrit..........."
|
2016-05-06 06:49:31 -06:00
|
|
|
if ! hash pyrit 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Pyrit" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install pyrit
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
2016-02-23 06:14:02 -07:00
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Python.........."
|
2016-05-06 06:49:31 -06:00
|
|
|
if ! hash python 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Python" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install python
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
|
|
|
|
##############################
|
|
|
|
echo -ne "Reaver.........."
|
|
|
|
if ! hash reaver 2>/dev/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Reaver" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install reaver
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
2016-05-06 06:49:31 -06:00
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
##############################
|
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "rfkill.........."
|
|
|
|
if ! hash rfkill 2>/dev/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Rfkill" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install rfkill
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
|
|
|
|
##############################
|
|
|
|
|
|
|
|
echo -ne "Unzip..........."
|
2016-05-06 06:49:31 -06:00
|
|
|
if ! hash unzip 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing unzip" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install unzip
|
2016-02-23 06:14:02 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-23 06:14:02 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
2016-02-23 06:14:02 -07:00
|
|
|
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Xterm..........."
|
2016-02-21 02:56:15 -07:00
|
|
|
if ! hash xterm 2>/dev/null; then
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
apt-get install xterm
|
2016-02-21 02:56:15 -07:00
|
|
|
else
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -e "\e[1;32mOK!"$transparent
|
|
|
|
fi
|
2016-02-21 02:56:15 -07:00
|
|
|
sleep 0.025
|
2016-05-06 06:49:31 -06:00
|
|
|
##############################
|
2016-06-12 09:40:40 -06:00
|
|
|
echo -ne "Zenity.........."
|
|
|
|
if ! hash zenity 2>/tmp/null; then
|
|
|
|
echo -e "\e[1;31mInstalling ..."$transparent""
|
|
|
|
xterm $HOLD -title "Installing Zenity" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install zenity
|
|
|
|
else
|
|
|
|
echo -e "\e[1;32mOK!"$transparent""
|
|
|
|
fi
|
|
|
|
sleep 0.025
|
|
|
|
##############################
|
|
|
|
|
|
|
|
xterm $HOLD -title "Remove repositories" -e python remove.py
|