mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-22 16:25:37 +01:00
17 lines
715 B
Python
17 lines
715 B
Python
#!/usr/bin/env python3
|
|
|
|
import struct
|
|
|
|
from pykms_Base import kmsBase
|
|
from pykms_Misc import ErrorCodes
|
|
|
|
#---------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
class kmsRequestUnknown(kmsBase):
|
|
def executeRequestLogic(self):
|
|
finalResponse = bytearray()
|
|
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
|
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
|
finalResponse.extend(bytearray(struct.pack('<I', ErrorCodes['SL_E_VL_KEY_MANAGEMENT_SERVICE_ID_MISMATCH'][0])))
|
|
return finalResponse.decode('utf-8').encode('utf-8')
|