#!/bin/bash # ----------------------------------------------------------------------------- # Append Custom Content to .bashrc # ----------------------------------------------------------------------------- # Define the content to append to .bashrc cat <> ~/.bashrc # 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."