2020-04-11 09:30:14 +00:00
#!/bin/bash
clear
BLACK = '\e[30m'
RED = '\e[31m'
2020-07-11 12:19:06 +00:00
GREEN = '\e[92m'
2020-04-11 09:30:14 +00:00
YELLOW = '\e[33m'
2020-07-11 12:19:06 +00:00
ORANGE = '\e[93m'
2020-04-11 09:30:14 +00:00
BLUE = '\e[34m'
PURPLE = '\e[35m'
CYAN = '\e[36m'
WHITE = '\e[37m'
NC = '\e[0m'
2020-07-11 12:19:06 +00:00
purpal = '\033[35m'
2020-04-11 09:30:14 +00:00
2020-07-11 12:19:06 +00:00
echo -e " ${ ORANGE } "
2020-04-11 09:30:14 +00:00
echo ""
echo " ▄█ █▄ ▄████████ ▄████████ ▄█ ▄█▄ ▄█ ███▄▄▄▄ ▄██████▄ ███ ▄██████▄ ▄██████▄ ▄█ " ;
echo " ███ ███ ███ ███ ███ ███ ███ ▄███▀ ███ ███▀▀▀██▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ " ;
echo " ███ ███ ███ ███ ███ █▀ ███▐██▀ ███▌ ███ ███ ███ █▀ ▀███▀▀██ ███ ███ ███ ███ ███ " ;
echo " ▄███▄▄▄▄███▄▄ ███ ███ ███ ▄█████▀ ███▌ ███ ███ ▄███ ███ ▀ ███ ███ ███ ███ ███ " ;
echo "▀▀███▀▀▀▀███▀ ▀███████████ ███ ▀▀█████▄ ███▌ ███ ███ ▀▀███ ████▄ ███ ███ ███ ███ ███ ███ " ;
echo " ███ ███ ███ ███ ███ █▄ ███▐██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ " ;
echo " ███ ███ ███ ███ ███ ███ ███ ▀███▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███▌ ▄ " ;
echo " ███ █▀ ███ █▀ ████████▀ ███ ▀█▀ █▀ ▀█ █▀ ████████▀ ▄████▀ ▀██████▀ ▀██████▀ █████▄▄██ " ;
2022-04-28 17:13:35 +00:00
echo " ▀ ▀ " ;
2020-04-11 09:30:14 +00:00
2020-07-11 12:19:06 +00:00
echo -e " ${ BLUE } https://github.com/Z4nzu/hackingtool ${ NC } "
2020-04-11 09:30:14 +00:00
echo -e " ${ RED } [!] This Tool Must Run As ROOT [!] ${ NC } "
echo ""
2020-07-11 12:19:06 +00:00
echo -e ${ CYAN } "Select Best Option : "
echo ""
2022-04-28 17:13:35 +00:00
echo -e " ${ WHITE } [1] Kali Linux / Parrot-Os (apt) "
echo -e " ${ WHITE } [2] Arch Linux (pacman) " # added arch linux support because of feature request #231
2020-07-11 12:19:06 +00:00
echo -e " ${ WHITE } [0] Exit "
echo -n -e "Z4nzu >> "
read choice
INSTALL_DIR = "/usr/share/doc/hackingtool"
BIN_DIR = "/usr/bin/"
2022-04-28 17:13:35 +00:00
if [ $choice = = 1 ] || [ $choice = = 2 ] ; then
2020-07-11 12:19:06 +00:00
echo "[*] Checking Internet Connection .."
2020-07-23 20:37:19 +00:00
wget -q --tries= 10 --timeout= 20 --spider https://google.com
2022-04-28 17:13:35 +00:00
if [ [ $? = = 0 ] ] ; then
2020-07-11 12:19:06 +00:00
echo -e ${ BLUE } "[✔] Loading ... "
2022-04-28 17:13:35 +00:00
if [ $choice = = 1 ] ; then
sudo apt-get update && apt-get upgrade
2022-06-12 20:06:57 +00:00
sudo apt-get install python3-pip
2022-04-28 17:13:35 +00:00
elif [ $choice = = 2 ] ; then # added arch linux support because of feature request #231
sudo pacman -Suy
sudo pacman -S python-pip
sudo pacman -S yay
fi
2020-07-11 12:19:06 +00:00
echo "[✔] Checking directories..."
if [ -d " $INSTALL_DIR " ] ; then
echo "[!] A Directory hackingtool Was Found.. Do You Want To Replace It ? [y/n]:" ;
read input
if [ " $input " = "y" ] ; then
2022-04-28 17:13:35 +00:00
sudo rm -R " $INSTALL_DIR "
2020-07-11 12:19:06 +00:00
else
exit
fi
fi
echo "[✔] Installing ..." ;
echo "" ;
2022-04-28 17:13:35 +00:00
sudo git clone https://github.com/Z4nzu/hackingtool.git " $INSTALL_DIR " ;
2020-07-11 12:19:06 +00:00
echo " #!/bin/bash
python3 $INSTALL_DIR /hackingtool.py" ' ${ 1 + " $@ " } ' > hackingtool;
sudo chmod +x hackingtool;
sudo cp hackingtool /usr/bin/;
rm hackingtool;
2022-04-28 17:13:35 +00:00
echo "" ;
2020-07-11 12:19:06 +00:00
echo "[✔] Trying to installing Requirements ..."
2022-04-28 17:13:35 +00:00
if [ $choice = = 1 ] ; then
sudo pip3 install lolcat
sudo apt-get install -y figlet
sudo pip3 install boxes
sudo apt-get install boxes
sudo pip3 install flask
sudo pip3 install requests
elif [ $choice = = 2 ] ; then # added arch linux support because of feature request #231
sudo pip3 install lolcat
sudo pacman -S figlet
sudo pip3 install boxes
2022-04-28 17:18:41 +00:00
yay -S boxes --noconfirm
2022-04-28 17:13:35 +00:00
sudo pip3 install flask
sudo pip3 install requests
fi
else
echo -e $RED "Please Check Your Internet Connection ..!!"
2020-07-11 12:19:06 +00:00
fi
2020-04-11 09:30:14 +00:00
2020-07-11 12:19:06 +00:00
if [ -d " $INSTALL_DIR " ] ; then
echo "" ;
echo "[✔] Successfuly Installed !!! " ;
echo "" ;
echo "" ;
echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]"
echo " [+] [+]"
echo -e $ORANGE " [+] ✔✔✔ Now Just Type In Terminal (hackingtool) ✔✔✔ [+]"
echo " [+] [+]"
echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]"
2020-04-11 09:30:14 +00:00
else
2020-07-11 12:19:06 +00:00
echo "[✘] Installation Failed !!! [✘]" ;
2020-04-11 09:30:14 +00:00
exit
fi
2022-04-28 17:13:35 +00:00
elif [ $choice = = 0 ] && [ $choice != 1 ] && [ $choice != 2 ] ; then # fixed the "./test.sh: line 107: [: asd: integer expression expected" when entering any invalid input containing letters
2020-07-11 12:19:06 +00:00
echo -e $RED "[✘] THank Y0u !! [✘] "
2020-04-11 09:30:14 +00:00
exit
2022-04-28 17:13:35 +00:00
else
2020-07-11 12:19:06 +00:00
echo -e $RED "[!] Select Valid Option [!]"
2020-04-11 09:30:14 +00:00
fi