diff --git a/lib/msf/core/payload/windows/prepend_migrate.rb b/lib/msf/core/payload/windows/prepend_migrate.rb index 21337af716..58ad420cfe 100644 --- a/lib/msf/core/payload/windows/prepend_migrate.rb +++ b/lib/msf/core/payload/windows/prepend_migrate.rb @@ -456,10 +456,11 @@ module Msf::Payload::Windows::PrependMigrate call rbp ; GetStartupInfoA( &si ); jmp getcommand - gotcommand: + gotcommand: pop rsi ; rsi = address of process name (command line) ; create the process + push 0 ; keep the stack aligned lea rdi,[rsp+0x110] ; Offset of empty space for lpProcessInformation push rdi ; lpProcessInformation : write processinfo here lea rcx,[rsp+0x58]