Skip to content

Instantly share code, notes, and snippets.

@DJStompZone
DJStompZone / setup.ps1
Last active April 25, 2025 23:09
SSH setup
<#
.SYNOPSIS
Enables and configures OpenSSH server on Windows 10 Pro.
.DESCRIPTION
Installs the OpenSSH.Server feature if needed, starts the sshd service, sets it to auto-start,
allows SSH traffic through the Windows Firewall, and ensures basic configuration is ready.
.AUTHOR
DJ Stomp <[email protected]>
@DJStompZone
DJStompZone / build.sh
Last active April 11, 2025 12:07
Build with Poetry and install Wheel with Pip
#!/usr/bin/env bash
poetry version patch && DISTWHL=`poetry build | awk -F " " -v x=3 '/[^ ]?\.whl/ {print $x}'`; pip install --no-cache-dir --force-reinstall "dist/$DISTWHL"
@DJStompZone
DJStompZone / README.md
Last active March 22, 2025 21:02
The Entire History of Music, I Guess
graph LR
    A[West African Traditional Music] --> B[Proto-Blues Rhythms]
    A --> C[Afro-Caribbean Rhythms]
    B --> D[Field Hollers & Spirituals]
    D --> E[African American Work Songs]
    E ---> F[[Blues]]
    F --> G[Country Blues]
    F --> H[Delta Blues]
    F --> I[Chicago Blues]
@DJStompZone
DJStompZone / sus.js
Created March 20, 2025 22:16
SUSPICIOUS CODE SAMPLE: "Mercy Hacks"
// @Note: Redacted URLs, in the interest of prudence.
// By uncommenting the code below, you assume full responsibility for any potential harm caused.
// As such, I do not advise doing so.
// REDACTED_DOMAIN = "dearesthydrogen.com/"
// REDACTED_ROUTE = "ytc4qgjg9"
// REDACTED_QUERY = {
// key: "b05e412b22b0904a4fd90ce8391d5f37"
// }
// REDACTED = `https://${REDACTED_DOMAIN}${REDACTED_ROUTE}?key=${REDACTED_QUERY.key}`
// The remainder of the document is unmodified except where these URLs occur.
@DJStompZone
DJStompZone / mcbackup.py
Last active March 13, 2025 07:08
BDS Backup .mcworld
#!/usr/bin/env python3
import os
import re
import math
import json
import zlib
import base64
import zipfile
import argparse
@DJStompZone
DJStompZone / README.md
Last active February 24, 2025 16:44
Example Network Diagram

Example Network Diagram

flowchart TD
    A[PC 1] <---> B{Server}
    C[PC 2] <---> B
    D[PC 3] <---> B
    H([Xbox]) --> F
    E[Laptop] <---> B
 I([PS5]) --&gt; F
@DJStompZone
DJStompZone / formatstr3.py
Created February 22, 2025 19:22
PicoCTF Format String 3
#!/usr/bin/env python3
from pwn import *
import argparse
import os
from time import sleep
REQS = ["./format-string-3", "libc.so.6", "ld-linux-x86-64.so.2"]
BIN, libc, _ = REQS
context.binary = ELF(BIN)
@DJStompZone
DJStompZone / windows_key.py
Created February 1, 2025 01:56
Windows Key Algorithm
#!/usr/bin/env python3
from typing import Optional
import windows_tools.registry
import windows_tools.wmi_queries
def decode_key(rpk: str) -> str:
"""
@DJStompZone
DJStompZone / specs.md
Last active January 28, 2025 20:09
Moto Stylus 5G Specs

Moto Stylus 5G (2024) Specs

---
config:
  themeCSS: |
    #Specs rect {
      stroke: #422 !important;
      stroke-width: 3px !important;
      fill: #102 !important;
@DJStompZone
DJStompZone / fix-backticks.ps1
Last active January 23, 2025 14:30
Fix Backticks (Lua)
<#
.SYNOPSIS
Processes a Lua file by replacing certain characters.
.DESCRIPTION
The script checks if `v.l` or `vehicles.lua` exists. If `v.l` exists, it uses that for processing. Otherwise, it renames `vehicles.lua` to `v.l` and processes the file content to replace backticks with single quotes.
.AUTHOR
DJ Stomp <[email protected]>