-
Notifications
You must be signed in to change notification settings - Fork 4
/
uninstall.sh
87 lines (73 loc) · 2.38 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
#!/bin/bash
# Ensure we are being ran as root
if [ $(id -u) -ne 0 ]; then
echo "This script must be ran as root"
exit 1
fi
clear
Red="\e[1;91m" ##### Colors Used #####
Green="\e[0;92m"
Yellow="\e[0;93m"
Blue="\e[1;94m"
White="\e[0;97m"
# Banner function for introduction
banner () { ##### Banner #####
echo -e "${Red} __ __ __ __ __ ___ "
echo -e "${Red} /\ | |__) /__\` / \` |__) | |__) | "
echo -e "${Red} /~~\\ | | \\ .__/ \\__, | \\ | | | "
echo -e "${Yellow} \n Uninstall Tool"
echo -e "${Green}\n It's sad to see you go :("
echo -e "${Green} If there anything I can do to make this script better feel free to contact me!"
echo -e "${Green} Email me [email protected]"
}
menu () { ##### Display available options #####
echo -e "\n${Yellow} [ Select Option To Continue ]\n\n"
echo -e " ${Red}[${Blue}1${Red}] ${Green}Uninstall everything!"
echo -e " ${Red}[${Blue}2${Red}] ${Green}Uninstall just tools but keep air script"
echo -e " ${Red}[${Blue}3${Red}] ${Green}Exit\n\n"
while true; do
echo -e "${Green}┌─[${Red}Select Option${Green}]──[${Red}~${Green}]─[${Yellow}Menu${Green}]:"
read -p "└─────►$(tput setaf 7) " option
case $option in
1) echo -e "\n[${Green}Selected${White}] Option 1 Uninstall Everything, Air Script sucks ballz lol.."
uninstallALL
;;
2) echo -e "\n[${Green}Selected${White}] Option 2 Uninstall tools but keep Air Script.."
uninstallTools
exit 0
;;
3) echo -e "${Red}\n\033[1mThank You for using the script,\nHappy Hacking :)\n"
exit 0
;;
*) echo -e "${White}[${Red}Error${White}] Please select correct option...\n"
;;
esac
done
}
uninstallALL () {
cd ..
sudo rm -rf/bin/air-script
sudo rm -rf air-script
sudo apt-get remove wifiphisher
sudo apt-get remove kali-anonsurf
sudo rm -rf /usr/sbin/wifite
sudo apt-get remove angry-ip-scanner
sudo rm -rf /usr/bin/ipscan
sudo apt-get remove postfix
sudo apt-get remove sendemail
sudo rm /usr/local/bin/airscript
}
uninstallTools () {
sudo rm -rf /bin/air-script/tools
sudo apt-get remove kali-anonsurf
sudo apt-get remove wifiphisher
sudo apt-get remove angry-ip-scanner
sudo rm -rf /usr/bin/ipscan
sudo apt-get remove postfix
sudo apt-get remove sendemail
}
targeted () {
banner
menu
}
targeted