File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
lib/msf/core/payload/windows Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ def generate
32
32
# Generate the simple version of this stager if we don't have enough space
33
33
if self . available_space . nil? || required_space > self . available_space
34
34
return generate_bind_tcp (
35
- port : datastore [ 'LPORT' ] ,
35
+ port : datastore [ 'LPORT' ] . to_i ,
36
36
close_socket : close_listen_socket
37
37
)
38
38
end
39
39
40
40
conf = {
41
- port : datastore [ 'LPORT' ] ,
41
+ port : datastore [ 'LPORT' ] . to_i ,
42
42
exitfunk : datastore [ 'EXITFUNC' ] ,
43
43
close_socket : close_listen_socket ,
44
44
reliable : true
@@ -67,7 +67,8 @@ def generate_bind_tcp(opts={})
67
67
#
68
68
def required_space
69
69
# Start with our cached default generated size
70
- space = cached_size
70
+ # TODO: need help with this from the likes of HD.
71
+ space = 277
71
72
72
73
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
73
74
space += 31
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ def generate_bind_tcp(opts={})
65
65
#
66
66
def required_space
67
67
# Start with our cached default generated size
68
- space = cached_size
68
+ # TODO: need help with this from the likes of HD.
69
+ space = 277
69
70
70
71
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
71
72
space += 31
You can’t perform that action at this time.
0 commit comments