forked from AdrMXR/KitHack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uninstall.sh
executable file
·90 lines (77 loc) · 2.47 KB
/
uninstall.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
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin
#Copyright 2021 KITHACK
#Written by: Adrian Guillermo
#Facebook: https://facebook.com/adrian.guillermo.22
#Github: https://github.com/AdrMXR
#Uninstaller KitHack
# Colors
red='\e[1;31m'
default='\e[0m'
yellow='\e[0;33m'
orange='\e[38;5;166m'
green='\033[92m'
# Location
path=$(pwd)
# Check root
if [ "$(id -u)" != "0" ] > /dev/null 2>&1; then
echo -e '\n$red[x] Este script necesita permisos root.' 1>&2
exit
fi
# Banner
clear
sleep 2
echo -e "$yellow ____ ___ .__ __ .__ .__ "
echo -e "$yellow | | \____ |__| ____ _______/ |______ | | | | "
echo -e "$yellow | | / \| |/ \ / ___/\ __\__ \ | | | | "
echo -e "$yellow | | / | \ | | \\___ \ | | / __ \| |_| |__ "
echo -e "$yellow |______/|___| /__|___| /____ > |__| (____ /____/____/ "
echo -e "$yellow \/ \/ \/ \/ "
echo -e "$yellow "
echo -e "$orange Setup KitHack v1.3.2 "
echo -e " "
echo -e "$orange By:AdrMXR "
# Check if there is an internet connection
ping -c 1 google.com > /dev/null 2>&1
if [[ "$?" == 0 ]]; then
echo ""
echo -e "$green[✔][Internet Connection]............[ OK ]"
sleep 1.5
else
echo ""
echo -e "$red[!][Internet Connection].........[ NOT FOUND ]"
echo ""
exit
fi
# Uninstalling kithack
echo -e $yellow
echo -n [*] Desinstalando KitHack...= ;
sleep 3 & while [ "$(ps a | awk '{print $1}' | grep $!)" ] ; do for X in '-' '\' '|' '/'; do echo -en "\b$X"; sleep 0.1; done; done
echo ""
echo -e "$green"
if [ -f "/usr/local/bin/kithack" ]; then
rm /usr/local/bin/kithack
echo -e "[✔]/usr/local/bin/kithack"
sleep 0.2
fi
if [ -f "/usr/share/applications/kithack.desktop" ]; then
rm /usr/share/applications/kithack.desktop
echo -e "[✔]/usr/share/applications/kithack.desktop"
sleep 0.2
fi
if [ -f "/usr/share/icons/kithack.png" ]; then
rm /usr/share/icons/kithack.png
echo -e "[✔]/usr/share/icons/kithack.png"
sleep 0.2
fi
if [ -f "/tmp/data.txt" ]; then
rm /tmp/data.txt
echo -e "[✔]/tmp/data.txt"
sleep 0.2
fi
rm -rf $path
echo -e "[✔]$path"
sleep 0.2
echo -e "╔───────────────────────╗"
echo -e "|[✔] Uninstall complete.|"
echo -e "┖───────────────────────┙"
exit