Skip to content

Instantly share code, notes, and snippets.

using System;
using System.EnterpriseServices;
using System.Runtime.InteropServices;
public sealed class MyAppDomainManager : AppDomainManager
{
public override void InitializeNewDomain(AppDomainSetup appDomainInfo)
{
#Requires -Version 5.1
<#
Setup-And-Test-ConfirmBizRule.ps1
Creates a new AzMan store with a minimal application, attaches a
BizRule that checks a UserConfirmed parameter, then runs a test
AccessCheck.
AzMan's BizRule script host runs sandboxed with no UI or process
launch access, so calling Shell or launching an executable from
@secdev02
secdev02 / README.md
Created July 15, 2026 03:16
Experiments

Injection Key and Experimental Protocol

Maximally distant vocabulary

Fifteen words chosen greedily so that every pair sits in a different semantic cluster. No two share a domain, and none co-occur naturally with the Declaration's political and legal vocabulary:

word cluster
kumquat food, botany
isotope physics
@secdev02
secdev02 / README.md
Created July 14, 2026 02:20
The Quiet Constant

The Quiet Constant

I. The Prelude Signals

The anomaly arrived on a Tuesday, forty-one seconds before the universe had any right to announce it.

Dr. Elena Marchetti had been at the Atacama Gravitational Interferometer for six years, long enough to know the instrument's moods the way a sailor knows a hull. She knew the shudder of afternoon thermal drift, the whisper of trucks on the mining road eleven kilometers away, the peculiar hum the vacuum pumps made when the desert wind came down off the altiplano. She knew noise. What she was looking at was not noise.

At 03:12:07 universal time, the detector had recorded a gravitational wave event: two neutron stars, 140 megaparsecs out, spiraling into each other in the constellation Hydra. A clean chirp, textbook, confirmed within the hour by the sister observatories in Louisiana, Italy, and Japan. That was not the anomaly. The anomaly was the thing that preceded it.

@secdev02
secdev02 / DATA.MD
Last active July 12, 2026 14:37
Factorials, Legendre, Wilson, and a Naive Attack on RSA

Example from Integer factorization calculator

https://www.alpertron.com.ar/ECM.HTM?q=3233! 431 605526 267448 543482 484878 953900 399454 296689 065163 662428 262384 491687 828406 419373 883868 501113 073441 499988 710334 018941 200768 198137 445108 947611 397921 572055 211233 028135 995074 279410 792874 209448 800137 477418 545500 012455 868079 344813 958249 675278 900029 807720 440638 580382 472963 076037 245779 482217 476667 044190 052253 126815 900479 095949 143682 937282 541627 013041 657680 068315 113559 931237 156918 089319 017927 873708 797437 285067 862097 347648 337409 158029 781532 843965 835689 394022 041966 375708 563210 355048 826127 964651 094637 323259 165289 412321 225352 083722 165370 156195 950724 091296 529881 125717 070081 972143 078598 687434 073672 042977 069934 459764 804805 380602 289232 593095 027914 714794 473883 307795 896745 299114 741454 897897 194128 744768 248876 470399 850920 286890 339980 316232 582133 813072 438799 222529 284974 42

@secdev02
secdev02 / README.md
Created July 3, 2026 14:23
BALROG - Agentic Gandalf Solver

BALROG

A Python script that uses Claude to play Lakera's Gandalf prompt injection game (https://gandalf.lakera.ai/). Claude acts as both the questioner, which crafts probing messages, and the guesser, which reads the conversation and proposes a password.

Setup

Have Blue — Stealth Test

But I'm confident that our stealth technology will prove too elusive for even this Hawk missile's powerful tracking system (capable of detecting a live hawk riding on the thermals from thirty miles away). What makes this stealth airplane so revolutionary is that it will deflect radar beams like a bulletproof shield, and the missile battery will never electronically "see" it coming. On the Hawk's tracking system, our fighter's radar profile would show up as smaller than a hummingbird's. At least, that's what I'm betting. If I'm wrong, I'm in a hell of a bind.

Half the Pentagon's radar experts think we at the Skunk Works have achieved a stealth technology breakthrough that will revolutionize military aviation as profoundly as the first jets did. The other half thinks we are deluding ourselves and everyone else with our radar test claims. Those cynics insist that we are trying to pull a fast one — that we'll never be able to duplicate on a real airplane the spectacular low visibility

TALLYMAN

Episode 101 — "Ninety Seconds"

A drama in one hour. No real nations. No real wars. Every institution recognizable.


COLD OPEN

@secdev02
secdev02 / README.md
Last active June 30, 2026 20:04
WireGuard - Every packet explained

The Illustrated WireGuard Handshake

A single-page, byte-by-byte walkthrough of a WireGuard handshake — modeled directly on the style and visualizations of tls13.xargs.org and its sibling sites.

Open illustrated-wireguard-handshake.html in any browser. No build step, no dependencies, no network access required — everything is self-contained in one file.

What it shows

@secdev02
secdev02 / Start-TlsDebugger.ps1
Created June 29, 2026 19:12
GLM-5.2:cloud ollama - Create TLS Intercepting Proxy
# Start-TlsDebugger.ps1
# A Burp/Fiddler-style HTTP(S) debugging proxy that runs entirely from PowerShell,
# using New-SelfSignedCertificate for all cert generation (no COM, no NuGet).
#
# Wildcard certs: one *.example.com cert is reused for every host in that zone.
#
# TLS 1.3: handled automatically via SslProtocols.None -> SChannel picks the best
# protocol the OS and peer support (TLS 1.3 on Win11/Server 2022, else TLS 1.2).
#
# Switch: -Debug (built-in common parameter provided by [CmdletBinding()])