forked from anouarbensaad/vulnx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·48 lines (47 loc) · 1.7 KB
/
update.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
red = "\e[0;31m"
green = "\e[0;32m"
off = "\e[0m"
function banner(){
echo -e "===== VULNX INSTALL ====="
}
function termuxOS() {
echo -e "$red [$green+$red]$Cleaning Up Old Directories ...";
rm -r "/data/data/com.termux/files/usr/share/vulnx"
echo -e "$red [$green+$red]$off Installing ...";
git clone https://github.com/anouarbensaad/vulnx "/data/data/com.termux/files/usr/share/vulnx";
rm -r "/data/data/com.termux/files/usr/share/vulnx/config"
if [[ -d "/data/data/com.termux/files/usr/share/vulnx" ]]; then
echo -e "$red [$green+$red]$off Tool Successfully Updated And Will Start In 5s!";
echo -e "$red [$green+$red]$off You can execute tool by typing vulnx"
sleep 5;
vulnx
else
echo -e "$red [$green✘$red]$off Tool Cannot Be Installed On Your System! Use It As Portable !";
exit
fi
}
function debianOS() {
echo -e "$red [$green+$red]$off Cleaning Up Old Directories ...";
sudo rm -r "/usr/share/vulnx"
echo -e "$red [$green+$red]$off Installing ...";
sudo git clone https://github.com/anouarbensaad/vulnx "/usr/share/vulnx";
sudo rm -r "/usr/share/vulnx/config"
if [[ -d "/usr/share/vulnx" ]]; then
echo -e "$red [$green+$red]$off Tool Successfully Updated And Will Start In 5s!";
echo -e "$red [$green+$red]$off You can execute tool by typing vulnx";
sleep 5;
vulnx
else
echo -e "$red [$green✘$red]$off Tool Cannot Be Installed On Your System! Use It As Portable !";
exit
fi
}
if [[ -d "/data/data/com.termux/files/usr/" ]]; then
banner
echo -e "$red [$green+$red]$off vulnx Will Be Installed In Your System";
termuxOS
elif [ -d "/usr/bin/" ];then
banner
echo -e "$red [$green+$red]$off vulnx Will Be Installed In Your System";
debianOS
fi