File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
lib/msf/core/payload/windows
modules/exploits/windows/smb Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,11 @@ def required_space
76
76
# Add 100 bytes for the encoder to have some room
77
77
space += 100
78
78
79
- # Make room for the maximum possible URL length
80
- space += 256
79
+ # Make room for the maximum possible URL length (wchars)
80
+ space += 512 * 2
81
+
82
+ # proxy (wchars)
83
+ space += 128 * 2
81
84
82
85
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
83
86
space += 31
Original file line number Diff line number Diff line change @@ -73,8 +73,11 @@ def required_space
73
73
# Add 100 bytes for the encoder to have some room
74
74
space += 100
75
75
76
- # Make room for the maximum possible URL length
77
- space += 256
76
+ # Make room for the maximum possible URL length (wchars)
77
+ space += 512 * 2
78
+
79
+ # proxy (wchars)
80
+ space += 128 * 2
78
81
79
82
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
80
83
space += 31
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def initialize(info = {})
52
52
] ,
53
53
'Payload' =>
54
54
{
55
- 'Space' => 2048 ,
55
+ 'Space' => 3072 ,
56
56
'DisableNops' => true ,
57
57
'StackAdjustment' => -3500
58
58
} ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def initialize(info = {})
44
44
} ,
45
45
'Payload' =>
46
46
{
47
- 'Space' => 2048 ,
47
+ 'Space' => 3072 ,
48
48
'DisableNops' => true
49
49
} ,
50
50
'Platform' => 'win' ,
You can’t perform that action at this time.
0 commit comments