From 9b3229e8d7d8f453d1659fb71d343233ed3ecea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Mu=C3=B1oz?= Date: Tue, 16 May 2023 20:58:39 +0000 Subject: [PATCH] Delete wazuhdebian.sh --- wazuhdebian.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 wazuhdebian.sh diff --git a/wazuhdebian.sh b/wazuhdebian.sh deleted file mode 100755 index 2a4201a..0000000 --- a/wazuhdebian.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/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 - -