mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-08-09 18:24:18 +08:00
py3-kms upload
This commit is contained in:
13
py3-kms/kmsRequestUnknown.py
Normal file
13
py3-kms/kmsRequestUnknown.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import struct
|
||||
|
||||
from kmsBase import kmsBase
|
||||
|
||||
class kmsRequestUnknown(kmsBase):
|
||||
def getResponse(self):
|
||||
finalResponse = bytearray()
|
||||
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
||||
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
||||
finalResponse.extend(bytearray(struct.pack('<I', self.errorCodes['SL_E_VL_KEY_MANAGEMENT_SERVICE_ID_MISMATCH'])))
|
||||
return finalResponse.decode('utf-8').encode('utf-8') #*2to3*
|
Reference in New Issue
Block a user