restore ecx after setting the socket options, set default size

bug/bundler_fix
Brent Cook 2015-05-06 11:56:07 -05:00
parent 0493f58834
commit 5a8b6e90f2
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module Payload::Linux::BindTcp
#
def required_space
# Start with our cached default generated size
space = cached_size
space = 104
# Reliability checks add 4 bytes for the first check, 5 per recv check (2)
space += 14
@ -119,6 +119,7 @@ module Payload::Linux::BindTcp
int 0x80
xchg eax,edi ; restore the socket handle
add esp, 0x14
pop ecx
^
end