-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinstall.sh
80 lines (69 loc) · 3.12 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
clear
BLACK='\e[30m'
RED='\e[31m'
GREEN='\e[32m'
YELLOW='\e[33m'
BLUE='\e[34m'
PURPLE='\e[35m'
CYAN='\e[36m'
WHITE='\e[37m'
NC='\e[0m'
echo -e "${CYAN} "
echo ""
echo "██╗ ██╗ █████╗ ██╗ ██╗███╗ ███╗ ██████╗ ██████╗ █████╗ ██╗ ██╗██╗";
echo "██║ ██╔╝██╔══██╗██║ ██║████╗ ████║██╔═══██╗██╔══██╗██╔══██╗██║ ██╔╝██║";
echo "█████╔╝ ███████║██║ ██║██╔████╔██║██║ ██║██║ ██║███████║█████╔╝ ██║";
echo "██╔═██╗ ██╔══██║██║ ██║██║╚██╔╝██║██║ ██║██║ ██║██╔══██║██╔═██╗ ██║";
echo "██║ ██╗██║ ██║╚██████╔╝██║ ╚═╝ ██║╚██████╔╝██████╔╝██║ ██║██║ ██╗██║";
echo "╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝";
echo ""
echo -e "${CYAN} 【This】 【Tool】 【is】【Created】 【By】 【CybSec NITW】 ";
echo ""
echo -e "${YELLOW} Github.com/CybSec-NITW ${NC}"
echo ""
echo -e "${CYAN} [+]${GREEN} This Tool Must Run As ROOT ${CYAN}[+]${NC}"
echo ""
echo -e "${GREEN} [>] Press ${PURPLE}ENTER${GREEN} to Install KAUMODAKI, ${PURPLE}CTRL+C${GREEN} to Abort.${NC}"
read INPUT
echo ""
if [ "$PREFIX" = "/data/data/com.termux/files/usr" ]; then
INSTALL_DIR="$PREFIX/usr/share/doc/kaumodaki"
BIN_DIR="$PREFIX/usr/bin/"
pkg install -y git python3
else
INSTALL_DIR="/usr/share/doc/kaumodaki"
BIN_DIR="/usr/bin/"
fi
echo "[✔] Checking directories...";
if [ -d "$INSTALL_DIR" ]; then
echo "[!] A Directory kaumodaki Was Found.. Do You Want To Replace It ? [y/n]:" ;
read mama
if [ "$mama" = "y" ]; then
rm -R "$INSTALL_DIR"
else
exit
fi
fi
echo "[✔] Installing ...";
echo "";
git clone https://github.com/CybSec-NITW/kaumodaki.git "$INSTALL_DIR";
echo "#!/bin/bash
python3 $INSTALL_DIR/kaumodaki.py" '${1+"$@"}' > kaumodaki;
chmod +x kaumodaki;
sudo cp kaumodaki /usr/bin/;
rm kaumodaki;
if [ -d "$INSTALL_DIR" ] ;
then
echo "";
echo "[✔][✔]========================================================================$[✔]";
echo "$[✔][✔] Successfuly Installed !!! [✔]";
echo "";
echo "[✔][✔]========================================================================$[✔]";
echo "$[✔][✔] ✔✔✔ All Is Done!! you can execute tool by typing kaumodaki !! ✔✔✔ $[✔]";
echo "[✔][✔]========================================================================[✔]";
echo "";
else
echo "[✘] Installation Failed !!! [✘]";
exit
fi