You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2025-06-20 06:15:54 +02:00
Added arch linux support bc feature request #231
- Added Arch Linux support because feature request #231. - Fixed "./test.sh: line 107: [: invinput123: integer expression expected" when entering letters instead of a integer.
This commit is contained in:
55
install.sh
55
install.sh
@ -23,7 +23,7 @@ echo "▀▀███▀▀▀▀███▀ ▀██████████
|
|||||||
echo " ███ ███ ███ ███ ███ █▄ ███▐██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ";
|
echo " ███ ███ ███ ███ ███ █▄ ███▐██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ";
|
||||||
echo " ███ ███ ███ ███ ███ ███ ███ ▀███▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███▌ ▄ ";
|
echo " ███ ███ ███ ███ ███ ███ ███ ▀███▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███▌ ▄ ";
|
||||||
echo " ███ █▀ ███ █▀ ████████▀ ███ ▀█▀ █▀ ▀█ █▀ ████████▀ ▄████▀ ▀██████▀ ▀██████▀ █████▄▄██ ";
|
echo " ███ █▀ ███ █▀ ████████▀ ███ ▀█▀ █▀ ▀█ █▀ ████████▀ ▄████▀ ▀██████▀ ▀██████▀ █████▄▄██ ";
|
||||||
echo " ▀ ▀ ";
|
echo " ▀ ▀ ";
|
||||||
|
|
||||||
echo -e "${BLUE} https://github.com/Z4nzu/hackingtool ${NC}"
|
echo -e "${BLUE} https://github.com/Z4nzu/hackingtool ${NC}"
|
||||||
|
|
||||||
@ -31,47 +31,63 @@ echo -e "${RED} [!] This Tool Must Run As ROOT
|
|||||||
echo ""
|
echo ""
|
||||||
echo -e ${CYAN} "Select Best Option : "
|
echo -e ${CYAN} "Select Best Option : "
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${WHITE} [1] Kali Linux / Parrot-Os "
|
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
|
||||||
echo -e "${WHITE} [0] Exit "
|
echo -e "${WHITE} [0] Exit "
|
||||||
echo -n -e "Z4nzu >> "
|
echo -n -e "Z4nzu >> "
|
||||||
read choice
|
read choice
|
||||||
INSTALL_DIR="/usr/share/doc/hackingtool"
|
INSTALL_DIR="/usr/share/doc/hackingtool"
|
||||||
BIN_DIR="/usr/bin/"
|
BIN_DIR="/usr/bin/"
|
||||||
if [ $choice == 1 ]; then
|
if [ $choice == 1 ] || [ $choice == 2 ]; then
|
||||||
echo "[*] Checking Internet Connection .."
|
echo "[*] Checking Internet Connection .."
|
||||||
wget -q --tries=10 --timeout=20 --spider https://google.com
|
wget -q --tries=10 --timeout=20 --spider https://google.com
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
echo -e ${BLUE}"[✔] Loading ... "
|
echo -e ${BLUE}"[✔] Loading ... "
|
||||||
sudo apt-get update && apt-get upgrade
|
if [ $choice == 1 ]; then
|
||||||
sudo apt-get install python-pip
|
sudo apt-get update && apt-get upgrade
|
||||||
|
sudo apt-get install python-pip
|
||||||
|
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
|
||||||
echo "[✔] Checking directories..."
|
echo "[✔] Checking directories..."
|
||||||
if [ -d "$INSTALL_DIR" ]; then
|
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 input
|
read input
|
||||||
if [ "$input" = "y" ]; then
|
if [ "$input" = "y" ]; then
|
||||||
rm -R "$INSTALL_DIR"
|
sudo rm -R "$INSTALL_DIR"
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "[✔] Installing ...";
|
echo "[✔] Installing ...";
|
||||||
echo "";
|
echo "";
|
||||||
git clone https://github.com/Z4nzu/hackingtool.git "$INSTALL_DIR";
|
sudo git clone https://github.com/Z4nzu/hackingtool.git "$INSTALL_DIR";
|
||||||
echo "#!/bin/bash
|
echo "#!/bin/bash
|
||||||
python3 $INSTALL_DIR/hackingtool.py" '${1+"$@"}' > hackingtool;
|
python3 $INSTALL_DIR/hackingtool.py" '${1+"$@"}' > hackingtool;
|
||||||
sudo chmod +x hackingtool;
|
sudo chmod +x hackingtool;
|
||||||
sudo cp hackingtool /usr/bin/;
|
sudo cp hackingtool /usr/bin/;
|
||||||
rm hackingtool;
|
rm hackingtool;
|
||||||
echo "";
|
echo "";
|
||||||
echo "[✔] Trying to installing Requirements ..."
|
echo "[✔] Trying to installing Requirements ..."
|
||||||
sudo pip3 install lolcat
|
if [ $choice == 1 ]; then
|
||||||
sudo apt-get install -y figlet
|
sudo pip3 install lolcat
|
||||||
sudo pip3 install boxes
|
sudo apt-get install -y figlet
|
||||||
sudo apt-get install boxes
|
sudo pip3 install boxes
|
||||||
sudo pip3 install flask
|
sudo apt-get install boxes
|
||||||
sudo pip3 install requests
|
sudo pip3 install flask
|
||||||
else
|
sudo pip3 install requests
|
||||||
echo -e $RED "Please Check Your Internet Connection ..!!"
|
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
|
||||||
|
sudo yay -S boxes --noconfirm
|
||||||
|
sudo pip3 install flask
|
||||||
|
sudo pip3 install requests
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -e $RED "Please Check Your Internet Connection ..!!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$INSTALL_DIR" ]; then
|
if [ -d "$INSTALL_DIR" ]; then
|
||||||
@ -88,10 +104,9 @@ if [ $choice == 1 ]; then
|
|||||||
echo "[✘] Installation Failed !!! [✘]";
|
echo "[✘] Installation Failed !!! [✘]";
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
elif [ $choice -eq 0 ];
|
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
|
||||||
then
|
|
||||||
echo -e $RED "[✘] THank Y0u !! [✘] "
|
echo -e $RED "[✘] THank Y0u !! [✘] "
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo -e $RED "[!] Select Valid Option [!]"
|
echo -e $RED "[!] Select Valid Option [!]"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user