mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-11-17 02:51:25 +00:00
A Great Update: py-kms_2019-05-15
This commit is contained in:
16
py-kms/pykms_RequestUnknown.py
Normal file
16
py-kms/pykms_RequestUnknown.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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')
|
||||
Reference in New Issue
Block a user