fluxion/Installer.sh

217 lines
5.0 KiB
Bash
Raw Normal View History

2016-03-05 05:00:59 -07:00
####### < Color > #######
white="\033[1;37m"
grey="\033[0;37m"
red2="\033[0;35m"
red="\033[1;31m"
green="\033[1;32m"
yellow="\033[1;33m"
blue="\033[1;34m"
transparent="\e[0m"
#########################
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root." 1>&2
exit 1
fi
2016-03-05 05:00:59 -07:00
############################################# < START > ####################################################
2016-02-21 07:00:39 -07:00
clear
echo -e "\e[1;31mInstaller - by Deltax"
echo -e "\e[1;31mCheck & autoinstall"
echo -e "\e[1;31mDebian only"
echo -e "\e[1;31mFix coming soon"
echo -e "\e[1;31mBug add-apt-repository"
echo -e "\e[1;31mor add kali sources in etc/apt/source.lst"
2016-02-21 02:56:15 -07:00
2016-02-21 07:00:39 -07:00
2016-02-23 06:14:02 -07:00
clear
apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6
apt-add-repository deb http://http.kali.org/kali kali main non-free contrib
apt-add-repository deb http://security.kali.org/kali-security kali/updates main contrib non-free
apt-get update -m
2016-02-23 06:14:02 -07:00
sleep 5
2016-02-21 07:00:39 -07:00
clear
2016-02-21 02:56:15 -07:00
echo -ne "Aircrack-ng....."
if ! hash aircrack-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install aircrack-ng -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Aireplay-ng....."
if ! hash aireplay-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install aireplay-ng -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Airmon-ng......."
if ! hash airmon-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install aircrack-ng -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Airodump-ng....."
if ! hash airodump-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install aircrack-ng -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Awk............."
if ! hash awk 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install awk -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Curl............"
if ! hash curl 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install curl -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Dhcpd..........."
if ! hash dhcpd 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent" (isc-dhcp-server)"
apt-get install isc-dhcp-server -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Hostapd........."
if ! hash hostapd 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install hostapd -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Iwconfig........"
if ! hash iwconfig 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install wireless-tools -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Lighttpd........"
if ! hash lighttpd 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install lighttpd -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Macchanger......"
if ! hash macchanger 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install macchanger -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Mdk3............"
if ! hash mdk3 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install mdk3 -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Php5-cgi........"
if ! [ -f /usr/bin/php-cgi ]; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install php5-cgi -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Pyrit..........."
if ! hash pyrit 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install pyrit
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Python.........."
if ! hash python 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install python -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Unzip..........."
if ! hash unzip 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install unzip -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
2016-02-23 06:14:02 -07:00
echo -ne "Mdk3............"
if ! hash mdk3 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
cd
wget http://linux.gungoos.com/mdk3-v6.tar.gz
tar xvzf mdk3-v6.tar.gz
cd mdk3-v6
apt-get install patch
2016-02-23 06:14:02 -07:00
wget http://linux.gungoos.com/mdk3-v6.patch
patch Makefile < mdk3-v6.patch
rm mdk3-v6.patch
make
make install
2016-02-23 06:14:02 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
2016-02-21 02:56:15 -07:00
echo -ne "Xterm..........."
if ! hash xterm 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
apt-get install xterm -y
2016-02-21 02:56:15 -07:00
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
2016-02-21 07:00:39 -07:00
sleep 10
2016-02-21 02:56:15 -07:00
clear
2016-02-23 06:14:02 -07:00
2016-03-17 00:20:26 -06:00
echo "sources.list is located in /etc/apt/sources.list"
echo "remove kali source"
vi /etc/apt/sources.list
vi /etc/apt/sources.list
apt-get update