1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-26 17:41:08 +01:00

Use old style str formatting for pymet 2.5

This commit is contained in:
Spencer McIntyre 2017-02-15 21:06:12 -05:00
parent b4f51fd982
commit c5a41cfc18

View File

@ -883,7 +883,7 @@ class PythonMeterpreter(object):
None, fs_buf, ctypes.sizeof(fs_buf)):
return ERROR_FAILURE_WINDOWS
serial_num = serial_num.value
serial = "{0:04x}-{1:04x}".format((serial_num >> 16) & 0xFFFF, serial_num & 0xFFFF)
serial = "%04x" % ((serial_num >> 16) & 0xffff) + '-' "%04x" % (serial_num & 0xffff)
else:
serial = get_hdd_label()