Land #6051 : check include_send_uuid method support

This commit is contained in:
OJ 2015-10-06 07:31:11 +10:00
commit 32dbb8c3e0
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
1 changed files with 7 additions and 5 deletions

View File

@ -45,7 +45,7 @@ module Msf::Payload::Stager
proto = 'http'
end
send("transport_config_#{direction}_#{proto}", opts)
end
end
#
# Sets the payload type to a stager.
@ -159,10 +159,12 @@ module Msf::Payload::Stager
if (stage_over_connection?)
opts = {}
if include_send_uuid
uuid_raw = conn.get_once(16, 1)
if uuid_raw
opts[:uuid] = Msf::Payload::UUID.new({raw: uuid_raw})
if respond_to? :include_send_uuid
if include_send_uuid
uuid_raw = conn.get_once(16, 1)
if uuid_raw
opts[:uuid] = Msf::Payload::UUID.new({raw: uuid_raw})
end
end
end