Update Meterpreter URL length to 512
parent
cdbe923419
commit
9d20d057dd
|
@ -77,7 +77,7 @@ module Payload::Windows::StagelessMeterpreter
|
|||
# the URL might not be given, as it might be patched in some other way
|
||||
if url
|
||||
# Patch the URL using the patcher as this upports both ASCII and WCHAR.
|
||||
Rex::Payloads::Meterpreter::Patch.patch_string!(dll, "https://#{'X' * 256}", "s#{url}\x00")
|
||||
Rex::Payloads::Meterpreter::Patch.patch_string!(dll, "https://#{'X' * 512}", "s#{url}\x00")
|
||||
end
|
||||
|
||||
# if a block is given then call that with the meterpreter dll
|
||||
|
|
|
@ -18,7 +18,7 @@ module Rex
|
|||
|
||||
# Replace the URL
|
||||
def self.patch_url!(blob, url)
|
||||
patch_string!(blob, "https://#{"X" * 256}", url)
|
||||
patch_string!(blob, "https://#{'X' * 512}", url)
|
||||
end
|
||||
|
||||
# Replace the session expiration timeout
|
||||
|
|
Loading…
Reference in New Issue