-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathupdate
executable file
·57 lines (38 loc) · 838 Bytes
/
update
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
#!/bin/bash
G="\033[1;34m[*] \033[0m"
S="\033[1;32m[+] \033[0m"
# Author TH3W1LDN16HT
url="https://github.com/W1LDN16H7/StegoCracker.git"
clear
echo
while [[ $(sudo -n id -u 2>&1) != 0 ]]; do
{
sudo -v -p "$(echo -e -n "$P")Password for $(whoami): "
} &> /dev/null
done
echo -e "$G""Updating Stego...."
if [[ -f /usr/bin/stego ]]; then
update=true
else
# shellcheck disable=SC2034
update=false
fi
{
if [[ $update ]]; then
sudo rm -rf /usr/bin/stego
sudo mkdir $HOME/Tools
sudo git clone $url $HOME/Tools/
cd $HOME/Tools/
chmod -R 777 Stego*
# shellcheck disable=SC2164
cd Stego*
chmod +x install.sh
./install.sh
fi
} &> /dev/null
if [[ ! -f /usr/bin/stego ]]; then
echo -e "$E""Installation failed!"
exit 1
fi
echo -e "$S""Successfully updated!"
exit 0