From 5c9c7cf7f3152dcf043d889b7bd66e757699e1d1 Mon Sep 17 00:00:00 2001 From: void Date: Sun, 23 Feb 2025 13:11:52 -0600 Subject: [PATCH] first commit --- provision_ubuntu_wazuh.sh | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 provision_ubuntu_wazuh.sh diff --git a/provision_ubuntu_wazuh.sh b/provision_ubuntu_wazuh.sh new file mode 100644 index 0000000..36ce20d --- /dev/null +++ b/provision_ubuntu_wazuh.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# ----------------------------------------------------------------------------- +# Append Custom Content to .bashrc +# ----------------------------------------------------------------------------- + +# Define the content to append to .bashrc +cat <> ~/.bashrc + +# Custom configurations added by script +export PATH=\$PATH:/custom/path +alias ll + +# Additional ASCII art and warning +echo '. . , . . . ' +echo '|\/| _ ._ _ _ ._ -+-. .._ _ | | _ ._.;_/ __' +echo '| |(_)[ | )(/,[ ) | (_|[ | )|/\|(_)[ | \_) ' +echo ' ' +echo -e "\033[31mAll systems and resources accessed through MomentumWorks LLC are the exclusive property of the company. Unauthorized access, use, or tampering with these systems is prohibited.\" + +EOF + +# Inform user about the changes +echo "Configurations have been appended to ~/.bashrc. Please run 'source ~/.bashrc' to apply the changes." + +# ----------------------------------------------------------------------------- +# Set up and configure Wazuh Agent +# ----------------------------------------------------------------------------- + +# Download and install Wazuh Agent +wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.10.1-1_amd64.deb + +# Set Wazuh Manager and install agent +sudo WAZUH_MANAGER='server1.panicattack.cc' dpkg -i ./wazuh-agent_4.10.1-1_amd64.deb + +# Enable and start the Wazuh Agent service +sudo systemctl daemon-reload +sudo systemctl enable wazuh-agent +sudo systemctl start wazuh-agent + +# Provide feedback to the user +echo "Wazuh agent has been installed and started successfully."