1
0
mirror of https://github.com/Z4nzu/hackingtool.git synced 2025-06-20 06:15:54 +02:00

Update install.sh

This commit is contained in:
Mr.Z4nzu
2020-07-11 17:49:06 +05:30
committed by GitHub
parent 4880f7fdc0
commit e7a1e3d6f5

View File

@ -3,15 +3,17 @@ clear
BLACK='\e[30m' BLACK='\e[30m'
RED='\e[31m' RED='\e[31m'
GREEN='\e[32m' GREEN='\e[92m'
YELLOW='\e[33m' YELLOW='\e[33m'
ORANGE='\e[93m'
BLUE='\e[34m' BLUE='\e[34m'
PURPLE='\e[35m' PURPLE='\e[35m'
CYAN='\e[36m' CYAN='\e[36m'
WHITE='\e[37m' WHITE='\e[37m'
NC='\e[0m' NC='\e[0m'
purpal='\033[35m'
echo -e "${CYAN} " echo -e "${ORANGE} "
echo "" echo ""
echo " ▄█ █▄ ▄████████ ▄████████ ▄█ ▄█▄ ▄█ ███▄▄▄▄ ▄██████▄ ███ ▄██████▄ ▄██████▄ ▄█ "; echo " ▄█ █▄ ▄████████ ▄████████ ▄█ ▄█▄ ▄█ ███▄▄▄▄ ▄██████▄ ███ ▄██████▄ ▄██████▄ ▄█ ";
echo " ███ ███ ███ ███ ███ ███ ███ ▄███▀ ███ ███▀▀▀██▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ "; echo " ███ ███ ███ ███ ███ ███ ███ ▄███▀ ███ ███▀▀▀██▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ";
@ -23,53 +25,72 @@ echo " ███ ███ ███ ███ ███ ███
echo " ███ █▀ ███ █▀ ████████▀ ███ ▀█▀ █▀ ▀█ █▀ ████████▀ ▄████▀ ▀██████▀ ▀██████▀ █████▄▄██ "; echo " ███ █▀ ███ █▀ ████████▀ ███ ▀█▀ █▀ ▀█ █▀ ████████▀ ▄████▀ ▀██████▀ ▀██████▀ █████▄▄██ ";
echo " ▀ ▀ "; echo " ▀ ▀ ";
echo -e "${BLUE} Github.com/Z4nzu ${NC}" echo -e "${BLUE} https://github.com/Z4nzu/hackingtool ${NC}"
echo -e "${RED} [!] This Tool Must Run As ROOT [!]${NC}" echo -e "${RED} [!] This Tool Must Run As ROOT [!]${NC}"
echo -e "${WHITE}[>] Press ENTER to Install Hacking Tool, CTRL+C to Abort.${NC}"
read INPUT
echo "" echo ""
echo -e ${CYAN} "Select Best Option : "
if [ "$PREFIX" = "/data/data/com.termux/files/usr" ]; then echo ""
INSTALL_DIR="$PREFIX/usr/share/doc/hackingtool" echo -e "${WHITE} [1] Kali Linux / Parrot-Os "
BIN_DIR="$PREFIX/usr/bin/" echo -e "${WHITE} [0] Exit "
pkg install -y git python3 echo -n -e "Z4nzu >> "
else read choice
INSTALL_DIR="/usr/share/doc/hackingtool" INSTALL_DIR="/usr/share/doc/hackingtool"
BIN_DIR="/usr/bin/" BIN_DIR="/usr/bin/"
fi if [ $choice == 1 ]; then
echo "[*] Checking Internet Connection .."
echo "[✔] Checking directories..."; wget -q --tries=10 --timeout=20 --spider http://google.com
if [ -d "$INSTALL_DIR" ]; then if [[ $? -eq 0 ]]; then
echo -e ${BLUE}"[✔] Loading ... "
sudo apt-get update && apt-get upgrade
sudo apt-get install python-pip
echo "[✔] Checking directories..."
if [ -d "$INSTALL_DIR" ]; then
echo "[!] A Directory hackingtool Was Found.. Do You Want To Replace It ? [y/n]:" ; echo "[!] A Directory hackingtool Was Found.. Do You Want To Replace It ? [y/n]:" ;
read mama read input
if [ "$mama" = "y" ]; then if [ "$input" = "y" ]; then
rm -R "$INSTALL_DIR" rm -R "$INSTALL_DIR"
else else
exit exit
fi fi
fi fi
echo "[✔] Installing ...";
echo "[✔] Installing ...";
echo "";
git clone https://github.com/Z4nzu/hackingtool.git "$INSTALL_DIR";
echo "#!/bin/bash
python3 $INSTALL_DIR/hackingtool.py" '${1+"$@"}' > hackingtool;
chmod +x hackingtool;
sudo cp hackingtool /usr/bin/;
rm hackingtool;
if [ -d "$INSTALL_DIR" ] ;
then
echo ""; echo "";
echo "[✔] Successfuly Installed !!! [✔]"; git clone https://github.com/Z4nzu/hackingtool.git "$INSTALL_DIR";
echo "#!/bin/bash
python3 $INSTALL_DIR/hackingtool.py" '${1+"$@"}' > hackingtool;
sudo chmod +x hackingtool;
sudo cp hackingtool /usr/bin/;
rm hackingtool;
echo ""; echo "";
echo "[✔]========================================================================[✔]"; echo "[✔] Trying to installing Requirements ..."
echo "[✔] ✔✔✔ All Is Done!! you can execute tool by typing hackingtool !! ✔✔✔ [✔]"; sudo pip3 install lolcat
echo "[✔]========================================================================[✔]"; sudo apt-get install -y figlet
sudo pip3 install boxes
sudo pip3 install flask
sudo pip3 install requests
else
echo -e $RED "Please Check Your Internet Connection ..!!"
fi
if [ -d "$INSTALL_DIR" ]; then
echo ""; echo "";
else echo "[✔] Successfuly Installed !!! ";
echo "";
echo "";
echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]"
echo " [+] [+]"
echo -e $ORANGE " [+] ✔✔✔ Now Just Type In Terminal (hackingtool) ✔✔✔ [+]"
echo " [+] [+]"
echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]"
else
echo "[✘] Installation Failed !!! [✘]"; echo "[✘] Installation Failed !!! [✘]";
exit exit
fi
elif [ $choice -eq 0 ];
then
echo -e $RED "[✘] THank Y0u !! [✘] "
exit
else
echo -e $RED "[!] Select Valid Option [!]"
fi fi