Update Meterpreter URL length to 512

bug/bundler_fix
OJ 2015-03-20 13:16:43 +10:00
parent cdbe923419
commit 9d20d057dd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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