-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathferramentas
140 lines (118 loc) · 3.27 KB
/
ferramentas
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/bin/bash
corPadrao="\033[0m"
preto="\033[0;30m"
vermelho="\033[0;31m"
verde="\033[0;32m"
marrom="\033[0;33m"
azul="\033[0;34m"
purple="\033[0;35m"
cyan="\033[0;36m"
cinzaClaro="\033[0;37m"
pretoCinza="\033[1;30m"
vermelhoClaro="\033[1;31m"
verdeClaro="\033[1;32m"
amarelo="\033[1;33m"
azulClaro="\033[1;34m"
purpleClaro="\033[1;35m"
cyanClaro="\033[1;36m"
branco="\033[1;37m"
clear
echo -e "\033[0;32m_________________________________________________________\033[0;32m"
echo -e "\033[47;30m FERRAMENTAS \033[0m"
echo -e "\033[0;32m_________________________________________________________\033[0;32m"
_PORTAS=$(lsof -V -i tcp -P -n | grep "LISTEN" | cut -d: -f2 | cut -d' ' -f1 | uniq)
for _PORTA in ${_PORTAS[@]}; do
printf '%-10s%-10s%-10s\n' "Porta: " "${_PORTA}" "Aberta"
done
echo -e "\033[0;32m_________________________________________________________\033[0;32m"
echo -e "\033[01;34m\033[01;34m"
echo -e "|00| \033[01;34mVOLTAR AO MENU\033[01;34m"
echo -e "|01| \033[01;34mLIMPAR CACHE\033[01;34m"
echo -e "|02| \033[01;34mGERENCIADOR BACKUP DE USUARIOS\033[01;34m"
echo -e "|03| \033[01;34mBAD UDP\033[01;34m"
echo -e "|04| \033[01;34mTESTE DE CONEXAO\033[01;34m"
echo -e "|05| \033[01;34mUSO DE CPU, RAM e PROCESSOS DA MAQUINA\033[01;34m"
echo -e "|06| \033[01;34mCONFIGURAR SQUID 3\033[01;34m"
echo -e "|07| \033[01;34mCONFIGURAR OPENVPN\033[01;34m"
echo -e "|08| \033[01;34mCONFIGURAR SOCKS PROXY(ENTRE NA SCREEN ANTES)\033[01;34m"
echo -e "|09| \033[01;34mADICIONAR HOST DA PAYLOAD\033[01;34m"
echo -e "|10| \033[01;34mLIMITAR CONEXOES SIMULTANEAS POR USUARIO\033[01;34m"
echo""
echo -e "\033[0;32m_________________________________________________________\033[0;32m"
echo -e "\033[0;31m"
read -p "[00-10]: " opcao
echo -e "\033[0;32m_________________________________________________________\033[0;32m"
case $opcao in
00)
PackSSH;;
01)
#limparCache.sh
#!/bin/bash
tput setaf 8 ; tput setab 5 ; tput bold ; printf '%30s%s%-15s\n' "Limpador e Swap" ; tput sgr0
echo ""
corPadrao="\033[0m"
preto="\033[0;30m"
vermelho="\033[0;31m"
verde="\033[0;32m"
marrom="\033[0;33m"
azul="\033[0;34m"
purple="\033[0;35m"
cyan="\033[0;36m"
cinzaClaro="\033[0;37m"
pretoCinza="\033[1;30m"
vermelhoClaro="\033[1;31m"
verdeClaro="\033[1;32m"
amarelo="\033[1;33m"
azulClaro="\033[1;34m"
purpleClaro="\033[1;35m"
cyanClaro="\033[1;36m"
branco="\033[1;37m"
cat -n /etc/issue |grep 1 |cut -d' ' -f6,7,8 |sed 's/1//' |sed 's/ //' > /etc/so
echo -e "\033[1;31mPARA LIMPAR O CACHE DE UM ENTER!\033[0m"
read -p "" ip
echo "Limpando o Cache e Swap..."
echo 3 > /proc/sys/vm/drop_caches
sysctl -w vm.drop_caches=3
swapoff -a && swapon -a
clear
service ssh restart & service squid3 restart
clear
echo -e "\033[01;31mLimpeza do Cache e Swap concluida\033[0m"
sleep 2
ferramentas;;
02)
UserBackup
sleep 1
ferramentas;;
03)
OpenUDP
ferramentas;;
04)
SpeedTest
sleep 6
ferramentas;;
05)
htop
ferramentas;;
06)
Squid3
sleep 2
ferramentas;;
07)
OpenVPN
sleep 5
ferramentas;;
08)
python socks.py
ferramentas;;
09)
addhost
ferramentas;;
10)
echo "INICIANDO A LIMITAÇÃO DE USUÁRIOS POR LOGIN SSH..."
sleep 2
sudo screen -dmS limiterssh bash LimiterSSH
echo "INICIADO A LIMITAÇÃO COM SUCESSO"
sleep 3
ferramentas;;
esac