Skip to content

Instantly share code, notes, and snippets.

View keyboardcrunch's full-sized avatar

keyboardcrunch keyboardcrunch

View GitHub Profile
@keyboardcrunch
keyboardcrunch / s1_service_create.txt
Created July 21, 2021 21:33
SentinelOne Service Create Detection
IndicatorName In ( "ServiceCreate" ) AND IndicatorMetadata RegExp "ServiceName: \"[a-zA-Z]{6,8}\"$" AND SrcProcName Not In ( "msiexec.exe" , "ccmsetup.exe" , "SetupRST.exe" , "Uninstap.exe" , "CcmEval.exe" , "TSManager.exe" , "CcmExec.exe" , "wuauclt.exe" ) AND IndicatorMetadata RegExp "^ServiceName: (\".*(?<!DeviceInstall|TrustedInstaller|Netlogon|wuauserv|ccmsetup|WManSvc|Winmgmt|CipcCdp|atashost|vpnagent|Dnscache|cplspcon|acnamfd|ancrcl|IISADMIN|gupdatem|gupdate|CcmExec)\")$"
@keyboardcrunch
keyboardcrunch / search_engine_shortcuts.csv
Created August 6, 2021 17:37
Search engine shortcuts
Search Engine Keyword URL Query Data Type
VT Search by Hash vthash https://www.virustotal.com/gui/file/%s/detection Any file hash
VT Search by Domain vtdomain https://www.virustotal.com/gui/domain/%s/details Domain Names
VT Search by IP vtip https://www.virustotal.com/gui/ip-address/%s/relations IP Addresses
RiskIQ Query riskiq https://community.riskiq.com/search/%s Any Domain or IP
AlienVault otx https://otx.alienvault.com/browse/pulses?q=%s Anything?
AlienVault IP otxip https://otx.alienvault.com/indicator/ip/%s IP Addresses
AlienVault Domain otxdomain https://otx.alienvault.com/indicator/domain/%s Domain
IPINFO ipinfo https://ipinfo.io/%s IP Addresses
CRT.sh crt https://crt.sh/?q=%s Domain, IP, Cert string or hash
@keyboardcrunch
keyboardcrunch / UAParser_IOCs.txt
Last active October 25, 2021 01:17
NPM UAParser Compromise
Sha256 In ("2a3acdcd76575762b18c18c644a745125f55ce121f742d2aad962521bc7f25fd", "47DDED0EFC230C3536F4DB1E2E476AFD3EDA8D8EA0537DB69D432322CDBAC9CA") OR IP In ("95.213.165.20", "159.148.186.228", "194.76.225.46", "185.158.250.216", "45.11.180.153", "194.76.225.61") OR DnsRequest In ("minexmr.com", "citationsherbe.at")
@keyboardcrunch
keyboardcrunch / pyattck_linux.md
Last active October 25, 2021 02:37
Linux pyattck data for project
from pyattck import Attck

attack = Attck()

for technique in attack.enterprise.techniques:
    print("# " + technique.name)
    for subtechnique in technique.subtechniques:
        if "Linux" in subtechnique.platforms:
 print("## " + subtechnique.id + " " + subtechnique.name)
@keyboardcrunch
keyboardcrunch / linux_art_plans.txt
Created October 26, 2021 01:52
Linux ART files
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.007/T1003.007.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.008/T1003.008.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1014/T1014.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1016/T1016.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1018/T1018.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1027.001/T1027.001.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1027.002/T1027.002.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1027/T1027.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1030/T1030.yaml
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1033/T1033.yaml
@keyboardcrunch
keyboardcrunch / SentinelOne_Resources.md
Last active March 17, 2026 06:07
SentinelOne Resources
@keyboardcrunch
keyboardcrunch / netclient2hosts.py
Last active February 6, 2022 01:33
helper script for netmaker, to inject netmaker peers into /etc/hosts
#!/usr/bin/python3
'''
script to merge netmaker clients from all bound networks into the
local system's hosts file.
'''
import subprocess
import json
HOST_FILE = '/etc/hosts'
@keyboardcrunch
keyboardcrunch / pop_vmware_host_modules.sh
Created September 22, 2022 20:53
Fix VMware Workstation on PopOS
#!/bin/bash
VMWARE_VERSION="workstation-$(vmware -v|grep -oE "[[:digit:]]+.[[:digit:]]+.[[:digit:]]+"| head -n1)" # this is detect the version you have VMware Workstation 16.2.1 build-18811642
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
@keyboardcrunch
keyboardcrunch / iddc.sh
Created September 25, 2022 15:01
docker and docker-compose install for Ubuntu
apt update
apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y docker-ce docker-compose
usermod -aG docker ${USER}
systemctl start docker.service
docker ps
@keyboardcrunch
keyboardcrunch / boxstarter_example.ps1
Last active March 16, 2024 18:07
Boxstarter single file example
$ChocoFile = Join-Path -Path $(Get-Location) -ChildPath "choco_config.txt"
$ChocoFileSettings = @'
# Software
choco install adobereader
choco install googlechrome
choco install firefox
choco install 7zip.install
# runtimes
choco install adoptopenjdk12