Step 7/12 (the AMSI patch byte array) was caught by Defender signature
1.463.399.0 because the well-known stub bytes appeared as literals.
Replace them with per-invocation random arithmetic expressions so no
static byte pattern exists in the script.
Also fix the success message: report ScriptBlock logging as disabled
only when the _enableScriptBlockLogging field actually existed (it was
removed in recent Win11 builds, making the SBL step a no-op).
Tested against Win11 Pro 25H2 with Defender RT + Tamper Protection on.
Add bypassclm.go to the layout, update bypass-4msi harness description
to note ETW/ScriptBlock extensions needed, mention bypass-clm in the
forgotten-shell convention, and correct the make check description
(golangci-lint runs in CI, not locally).
Note that bypass4msi-test.py should be extended for the ETW and
ScriptBlock logging patches. Add a stub entry for bypass-clm
documenting what a future harness needs to prove.
Patches GetSystemLockdownPolicy to return 0 (FullLanguage) via
the same obfuscated multi-step template approach as bypass-4msi.
Ported from bypass-clm's C# implementation.
Patches EtwEventWrite with a xor eax,eax; ret stub alongside the
existing AmsiScanBuffer patch, using the same VirtualProtect delegate.
Ported from bypass-clm's C# implementation.
Pushing a vX.Y.Z tag cross-compiles the 5 common targets and attaches archives
+ SHA256SUMS + SBOMs to the GitHub Release (.goreleaser.yml +
.github/workflows/release.yml). Version is stamped from the tag via -ldflags.
Replace the vendored go-psrp-fork/ (11.5k LOC carrying 15 lines of transport
patches, wired via a replace directive) with a normal dependency on
github.com/sresarehumantoo/go-psrp v0.1.0 (a public fork of smnsjas/go-psrp,
MIT). No replace directive, so `go install` works; one module, so
`go test ./...` is complete. Also drops the -dev suffix from the version.
An interactive WinRM shell for offensive Windows work, speaking the
PowerShell Remoting Protocol end to end. Command results come back as typed
objects (structured JSON on demand), and it authenticates against stock,
locked-down listeners: NTLM and Kerberos with WinRM message sealing that is
integrity-checked in both directions, pass-the-hash, and certificate auth.
Highlights:
- -o json structured output; -x one-shot and -x - batch/session mode over
one connection, built for automation as well as a prompt
- context-aware Tab completion (local/remote paths, the target's own cmdlet
names, and parameters/values via the target's TabExpansion2), ghost text
- a session that recovers a dropped connection, and detects a shell the
target has forgotten
- the full evil-winrm post-ex set: -s scripts + menu, services,
invoke-binary, donut-loader, bypass-4msi
- SOCKS5 pivoting, TLS verification (--ca-cert / --accept-fingerprint /
--insecure), client certs / mutual TLS
Every claim is live-verified against a real WinRM target; see
docs/verification.md. A Go port of Hackplayers/evil-winrm (LGPL-3.0), with all
20 of its flags and every post-ex command; PSRP transport builds on a patched
smnsjas/go-psrp (MIT), vendored under go-psrp-fork/.