-
Notifications
You must be signed in to change notification settings - Fork 65
/
parsetest.py
7 lines (5 loc) · 1.24 KB
/
parsetest.py
1
2
3
4
5
6
7
from msldap.wintypes.encryptedlaps import EncryptedLAPSBlob
from msldap.wintypes.encryptedlaps import LAPS_KEYIDENTIFIER
data = bytes.fromhex('6671D901E7F89911FA010000000000003082016406092A864886F70D010703A0820155308201510201023182011DA28201190201043081DC048184010000004B44534B02000000690100000F0000001D000000A84FC6BA90E87C91109083E7B0F8599620000000180000001800000016B3FA1BFC1066B30B63B29A2D29F31D82FB5AE3CC05F86ECB67EFAC69F2CE5564006F006D00610069006E002E007400650073007400000064006F006D00610069006E002E0074006500730074000000305306092B0601040182374A013046060A2B0601040182374A01013038303630340C035349440C2D532D312D352D32312D343135313830383739372D333433303536313039322D323834333436343538382D353132300B060960864801650304012D0428A692356A7A5F64B5ED8D32E466A798C0DF693F2B0407041FAC974EC6D6765ACAE4C69524CA62D276302B06092A864886F70D010701301E060960864801650304012E3011040C25D25F698D43B50A79F85B37020110EC7E7E80247A4607781E6184108BCCC5C81241D8685F1F42D13C9B39C2BCA41C60C7A4CB08F517BDC9780E1315D7A49EFD7519E11263855AC1CFA4D5226E2FE22D729AC4CA19D2D5140FA3B66D969E56EC17F4E273E7E93A250FEC14DC7E8F6E4631FFD1D5E6E75ED9430E001EAF0D873E008BBB2DD3BFC75984F5DD88A9748972EBB6450E95BE11EDDA36F74753874B89EF')
blob = EncryptedLAPSBlob.from_bytes(data)
print(blob.get_keyidentifier())