mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
restore ecx after setting the socket options, set default size
This commit is contained in:
parent
0493f58834
commit
5a8b6e90f2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user