Initial Build

This commit is contained in:
Kevin Muñoz 2023-05-16 15:41:09 -05:00
parent dbd3264338
commit ebf7ec173a
No known key found for this signature in database
GPG Key ID: 2F287937155A4380
2 changed files with 34 additions and 0 deletions

27
wazuhdebian.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
# Descargar e instalar el agente de Wazuh
wget -qO - https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add -
echo "deb https://packages.wazuh.com/4.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list
apt-get update
# Obtener la clave del agente del servidor Wazuh
echo "Ingrese la dirección IP o nombre de host del servidor Wazuh: "
read server_ip
echo "Ingrese el key del agente: "
read agent_key
WAZUH_MANAGER="$server_ip" apt-get install wazuh-agent
/var/ossec/bin/manage_agents -i $agent_key
# Iniciar el agente de Wazuh
systemctl daemon-reload
systemctl enable wazuh-agent
systemctl start wazuh-agent
# Desactivar las actualizaciones automáticas del agente
echo "Desactivando actualizaciones del wazuh-agent"
sed -i "s/^deb/#deb/" /etc/apt/sources.list.d/wazuh.list
apt-get update

7
wazuhdebian.sh.asc.sig Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
iIoEABYIADIWIQRFi3VFYtlWy+Zyp4AvKHk3FVpDgAUCZF/R3RQca211bm96QGNv
bmRvcmJzLm5ldAAKCRAvKHk3FVpDgNUMAP9bIAm7BbxhpGP8Tu0mSCym3/XMP60b
jOozQTpXcISbEwEAzMw228QzvfLLk5s6AFZECb4B7231da4FVagJIdmbEQs=
=E2UD
-----END PGP SIGNATURE-----