Skip to content

Commit 5b80c5d

Browse files
David MaloneyDavid Maloney
authored andcommitted
Land rapid7#7635, OJ's fix to UUID unpacking
fixes an issue with UUID packing that would incorrectly trim off nullbytes
2 parents d1be2d7 + e5db0f4 commit 5b80c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/uuid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def self.parse_raw(raw)
138138
raise ArgumentError, "Raw UUID must be at least 16 bytes"
139139
end
140140

141-
puid, plat_xor, arch_xor, plat_id, arch_id, tstamp = raw.unpack('A8C4N')
141+
puid, plat_xor, arch_xor, plat_id, arch_id, tstamp = raw.unpack('a8C4N')
142142
plat = find_platform_name(plat_xor ^ plat_id)
143143
arch = find_architecture_name(arch_xor ^ arch_id)
144144
time_xor = [plat_xor, arch_xor, plat_xor, arch_xor].pack('C4').unpack('N').first

0 commit comments

Comments
 (0)