Skip to content

Commit 8e71004

Browse files
committed
Land rapid7#7118 - fix stack offset/size for x64 prependmigrate
Fixes rapid7#7117
2 parents ec63f8f + bc42ac5 commit 8e71004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload/windows/prepend_migrate.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ def prepend_migrate_64(buf)
461461
462462
; create the process
463463
push 0 ; keep the stack aligned
464-
lea rdi,[rsp+0x110] ; Offset of empty space for lpProcessInformation
464+
lea rdi,[rsp+0x120] ; Offset of empty space for lpProcessInformation
465465
push rdi ; lpProcessInformation : write processinfo here
466-
lea rcx,[rsp+0x58]
466+
lea rcx,[rsp+0x60]
467467
push rcx ; lpStartupInfo : current info (read)
468468
xor rcx,rcx
469469
push rcx ; lpCurrentDirectory

0 commit comments

Comments
 (0)