-
Notifications
You must be signed in to change notification settings - Fork 0
/
script
82 lines (74 loc) · 1.97 KB
/
script
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
#!/bin/bash
function update() {
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get autoclean
sudo apt-get autoremove -y
}
function vpn() {
sudo pvpn -d && sudo pvpn -sc
}
function spoofmac() {
echo -e -n "$BLUE[$GREEN*$BLUE] Disabling interfaces\n"
sudo ifconfig wlan0 down
sudo ifconfig eth0 down
echo -e -n "$BLUE[$GREEN*$BLUE] Changing MAC\n"
sudo macchanger -r wlan0
echo -e -n "$BLUE[$GREEN*$BLUE] Reenabling wlan0\n"
sudo ifconfig wlan0 up
}
function clearbash() {
echo -e -n "$BLUE[$GREEN*$BLUE] Clearing bash history\n"
history -c
history -w
shred -u ~/.bash_history && touch ~/.bash_history
echo -e -n "$BLUE[$GREEN*$BLUE] bash history cleared\n"
}
function clean() {
echo -e -n "$BLUE[$GREEN*$BLUE] killing dangerous applications\n"
sudo killall -q chrome dropbox iceweasel skype icedove thunderbird firefox firefox-esr chromium xchat hexchat transmission steam firejail
echo -e -n "$BLUE[$GREEN*$BLUE] Dangerous applications killed\n"
echo -e -n "$BLUE[$GREEN*$BLUE] cleaning some dangerous cache elements\n"
bleachbit -c adobe_reader.cache chromium.cache chromium.current_session chromium.history elinks.history emesene.cache epiphany.cache firefox.url_history flash.cache flash.cookies google_chrome.cache google_chrome.history links2.history opera.cache opera.search_history opera.url_history &> /dev/null
echo -e -n "$BLUE[$GREEN*$BLUE] Cache cleaned\n"
}
function scan() {
sudo rkhunter --check
sudo clamscan -irl clam.log /
}
options=("Update" "VPN" "Spoofmac" "ClearBash" "Clean" "Scan" "all" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Update")
update
;;
"VPN")
vpn
;;
"Spoofmac")
spoofmac
;;
"ClearBash")
clearbash
;;
"Clean")
clean
;;
"Scan")
scan
;;
"all")
spoofmac
vpn
update
clearbash
clean
scan
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done