Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Download Splunk Universal Forwarder
wget -O splunkforwarder-9.3.1-0b8d769cb912-linux-2.6-amd64.deb "https://download.splunk.com/products/universalforwarder/releases/9.3.1/linux/splunkforwarder-9.3.1-0b8d769cb912-linux-2.6-amd64.deb"
# Install Splunk Universal Forwarder
sudo dpkg -i splunkforwarder-9.3.1-0b8d769cb912-linux-2.6-amd64.deb
# Set Splunk Home Directory
SPLUNK_HOME=/opt/splunkforwarder
#!/bin/bash
# Detect Amazon Linux version and set package manager
if [ -f /etc/os-release ]; then
. /etc/os-release
if [[ "$ID" == "amzn" ]]; then
if [[ "$VERSION_ID" == "2" ]]; then
PKG_MGR="yum"
elif [[ "$VERSION_ID" == "2023" ]]; then
PKG_MGR="dnf"
#!/bin/bash
# Download Splunk Universal Forwarder
wget -O splunkforwarder-9.3.1-0b8d769cb912-linux-2.6-amd64.deb "https://download.splunk.com/products/universalforwarder/releases/9.3.1/linux/splunkforwarder-9.3.1-0b8d769cb912-linux-2.6-amd64.deb"
# Install Splunk Universal Forwarder
sudo dpkg -i splunkforwarder-9.3.1-0b8d769cb912-linux-2.6-amd64.deb
# Set Splunk Home Directory
SPLUNK_HOME=/opt/splunkforwarder
@penghwee-sng
penghwee-sng / windows_hardening.cmd
Last active January 23, 2022 16:08 — forked from ricardojba/windows_hardening.cmd
A Windows hardening script
::##########################################################################################################################
::
:: This script can ruin your day, if you run it without fully understanding what it does, you don't know what you are doing,
::
:: OR BOTH!!!
::
:: YOU HAVE BEEN WARNED!!!!!!!!!!
::
:: This script is provided "AS IS" with no warranties, and confers no rights.
:: Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section,