Strip terminating NULL bytes from the CPU brand.

This commit is contained in:
Assaf Carlsbad
2020-01-05 13:23:05 +02:00
committed by BrentHoltsclaw
parent 82fef642e1
commit 87b48aef5b
+1
View File
@@ -54,6 +54,7 @@ class cpu_info(BaseModule):
regs = self.cs.cpu.cpuid(eax_val, 0)
for i in range(4):
brand += bytestostring(struct.pack('<I', regs[i]))
brand = brand.rstrip('\x00')
self.logger.log('[*] Processor: {}'.format(brand))
# Get processor version information