Skip to content

Commit 9d20d05

Browse files
committed
Update Meterpreter URL length to 512
1 parent cdbe923 commit 9d20d05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/msf/core/payload/windows/stageless_meterpreter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def generate_stageless_meterpreter(url = nil)
7777
# the URL might not be given, as it might be patched in some other way
7878
if url
7979
# Patch the URL using the patcher as this upports both ASCII and WCHAR.
80-
Rex::Payloads::Meterpreter::Patch.patch_string!(dll, "https://#{'X' * 256}", "s#{url}\x00")
80+
Rex::Payloads::Meterpreter::Patch.patch_string!(dll, "https://#{'X' * 512}", "s#{url}\x00")
8181
end
8282

8383
# if a block is given then call that with the meterpreter dll

lib/rex/payloads/meterpreter/patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def self.patch_transport!(blob, ssl)
1818

1919
# Replace the URL
2020
def self.patch_url!(blob, url)
21-
patch_string!(blob, "https://#{"X" * 256}", url)
21+
patch_string!(blob, "https://#{'X' * 512}", url)
2222
end
2323

2424
# Replace the session expiration timeout

0 commit comments

Comments
 (0)