mirror of
https://github.com/sresarehumantoo/wsmancer.git
synced 2026-11-24 05:49:16 +01:00
d71e0a843c
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.