commit 6cd43048ca9aed71c61200f9802abdcc74d2a06d Author: void Date: Sun Feb 23 13:11:52 2025 -0600 first commit 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."