MCPcopy
hub / github.com/fortra/impacket / dump

Method dump

impacket/dpapi_ng.py:101–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 )
100
101 def dump(self):
102 print("[KEY IDENTIFIER]")
103 print("Version:\t\t%s" % (self['Version']))
104 print("Magic:\t\t%s" % (hex(self['Magic'])))
105 print("Flags:\t\t%s" % (self['Flags']))
106 print("L0Index:\t\t%s" % (self['L0Index']))
107 print("L1Index:\t\t%s" % (self['L1Index']))
108 print("L2Index:\t\t%s" % (self['L2Index']))
109 print("RootKeyId:\t\t%s" % (self['RootKeyId']))
110 print("Unknown:\t\t%s" % (self['Unknown']))
111 print("Domain:\t\t%s" % (self['Domain'].decode('utf-16le')))
112 print("Forest:\t\t%s" % (self['Forest'].decode('utf-16le')))
113 print()
114
115 def is_public_key(self) -> bool:
116 return bool(self['Flags'] & 1)

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected