Fix up UUID handling

bug/bundler_fix
OJ 2015-04-28 21:59:19 +10:00
parent 4f9c8d04a2
commit 919b96e4cf
2 changed files with 3 additions and 3 deletions

View File

@ -35,14 +35,14 @@ private
end end
def session_block(opts) def session_block(opts)
uuid = to_wchar_t(opts[:uuid], UUID_SIZE) uuid = to_wchar_t(opts[:uuid].to_raw, UUID_SIZE)
exit_func = Msf::Payload::Windows.exit_types[opts[:exitfunk]] exit_func = Msf::Payload::Windows.exit_types[opts[:exitfunk]]
session_data = [ session_data = [
0, # comms socket, patched in by the stager 0, # comms socket, patched in by the stager
exit_func, # exit function identifer exit_func, # exit function identifer
opts[:expiration], # Session expiry opts[:expiration], # Session expiry
uuid, # the URL to use uuid # the UUID
] ]
session_data.pack("VVVA*") session_data.pack("VVVA*")

View File

@ -280,7 +280,7 @@ class ClientCore < Extension
id = response.get_tlv_value(TLV_TYPE_UUID) id = response.get_tlv_value(TLV_TYPE_UUID)
return id return Msf::Payload::UUID.new({:raw => id})
end end
def machine_id def machine_id