Created
November 19, 2019 00:15
-
-
Save kernullist/0ad638d43cc26fbf436a49988c40dc5d to your computer and use it in GitHub Desktop.
createprocess with a suspended thread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $path = "\??\C:\Users\$env:USERNAME\Desktop\bin\evil.exe" | |
| $sect = New-NtSectionImage -Path $path | |
| $p = [NtApiDotNet.NtProcess]::CreateProcessEx($sect) | |
| Get-NtStatus $p.ExitStatus | |
| [NtApiDotNet.NtThread]::Create($p, 0, 0, "Suspended", 4096) | |
| Get-NtStatus $p.ExitStatus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment