Skip to content

Commit 5a8b6e9

Browse files
author
Brent Cook
committed
restore ecx after setting the socket options, set default size
1 parent 0493f58 commit 5a8b6e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/msf/core/payload/linux/bind_tcp.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def generate_bind_tcp(opts={})
5555
#
5656
def required_space
5757
# Start with our cached default generated size
58-
space = cached_size
58+
space = 104
5959

6060
# Reliability checks add 4 bytes for the first check, 5 per recv check (2)
6161
space += 14
@@ -119,6 +119,7 @@ def asm_bind_tcp(opts={})
119119
int 0x80
120120
xchg eax,edi ; restore the socket handle
121121
add esp, 0x14
122+
pop ecx
122123
^
123124
end
124125

0 commit comments

Comments
 (0)