1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Fix CreatProcessA stack alignment in prependmigrate x64

This commit is contained in:
OJ 2015-10-01 10:24:13 +10:00
parent b35a0166bf
commit 22c424a4c6

View File

@ -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]