forked from Yashvendra/AutoXploit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·75 lines (70 loc) · 1.91 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
#!/bin/bash
Green='\033[0;32m'
white='\033[0;37m'
NC='\033[0m'
clear
printf '\033]2; INSTALLER\a'
echo -e "${Green}[*] Press \e[0;33many key\e[0;32m to install AutoXploit..."
read -n 1
clear
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ "$DIR" != "/root/AutoXploit" ]]
then
echo -e "\033[0;35m[~] I will install it for you..."
sleep 4
if [[ -d /root/AutoXploit ]]
then
rm -r /root/AutoXploit
fi
mkdir /root/AutoXploit
cp -r "$DIR"/* /root/AutoXploit
chmod +x /root/AutoXploit/install.sh
#gnome-terminal -- bash -c "sudo /root/bootmiester/install.sh; exec bash"
fi
echo -e "${Green}[+] Installing AutoXploit..."
sleep 1
echo -e "${Green}[+] Fixing permissions..."
sleep 2
chmod +x /root/AutoXploit/autoxploit.py
clear
echo -e "${Green}[+] Copying Tool to /bin/autoxploit"
cd /root/AutoXploit
cp /root/AutoXploit/autoxploit.py /bin/autoxploit
clear
while true
do
clear
echo -e "${Green}[*] Are you \e[0;33mu\e[0;32mpdating or \e[0;33mi\e[0;32mnstalling the script?(\e[0;33mu\e[0;32m/\e[0;33mi\e[0;32m): "
echo -e "${Green}[#] Only use 'i' for the first time."
read UORI
if [[ "$UORI" = "u" ]]
then
clear
echo -e "This feature is currently under construction.."
sleep 3
exit
elif [[ "$UORI" = "i" ]]
then
clear
BASHCHECK=$(cat ~/.bashrc | grep "/bin/autoxploit")
if [[ "$BASHCHECK" != "" ]]
then
echo -e "I SAID USE i ONLY ONE TIME..........."
sleep 3
break
fi
echo -e "${Green}[#] Adding AutoXploit to PATH so you can access it from anywhere"
sleep 1
export PATH=/bin/autoxploit:$PATH
sleep 1
echo "export PATH=/bin/autoxploit:$PATH" >> ~/.bashrc
sleep 1
clear
break
fi
done
sleep 1
echo -e "${Green}[#] Installation is finished. Type 'sudo autoxploit' to launch the script after we exit."
sleep 0.5
echo -en "${Green}[+] Starting AutoXploit"; sleep 0.5 ;echo -en "." ;sleep 0.5 ;echo -en "." ;sleep 0.5 ;echo -en "." ;sleep 0.5 ;echo -en "." ;
sudo autoxploit