Skip to content

Commit 919b96e

Browse files
committed
Fix up UUID handling
1 parent 4f9c8d0 commit 919b96e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/rex/payloads/meterpreter/config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def to_wchar_t(item, size)
3535
end
3636

3737
def session_block(opts)
38-
uuid = to_wchar_t(opts[:uuid], UUID_SIZE)
38+
uuid = to_wchar_t(opts[:uuid].to_raw, UUID_SIZE)
3939
exit_func = Msf::Payload::Windows.exit_types[opts[:exitfunk]]
4040

4141
session_data = [
4242
0, # comms socket, patched in by the stager
4343
exit_func, # exit function identifer
4444
opts[:expiration], # Session expiry
45-
uuid, # the URL to use
45+
uuid # the UUID
4646
]
4747

4848
session_data.pack("VVVA*")

lib/rex/post/meterpreter/client_core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def uuid
280280

281281
id = response.get_tlv_value(TLV_TYPE_UUID)
282282

283-
return id
283+
return Msf::Payload::UUID.new({:raw => id})
284284
end
285285

286286
def machine_id

0 commit comments

Comments
 (0)