first commit

This commit is contained in:
void 2025-02-23 13:11:52 -06:00
parent 4c59740dbb
commit 5c9c7cf7f3
1 changed files with 42 additions and 0 deletions

42
provision_ubuntu_wazuh.sh Normal file
View File

@ -0,0 +1,42 @@
#!/bin/bash
# -----------------------------------------------------------------------------
# Append Custom Content to .bashrc
# -----------------------------------------------------------------------------
# Define the content to append to .bashrc
cat <<EOF >> ~/.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."