Land #6051 : check include_send_uuid method support
This commit is contained in:
commit
32dbb8c3e0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue