This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Transform a msDS-ManagedPassword blob into keys | |
# Copy paste from different scripts | |
import base64 | |
from binascii import hexlify, unhexlify | |
from Cryptodome.Hash import MD4 | |
from impacket.ldap.ldaptypes import ACE, ACCESS_ALLOWED_OBJECT_ACE, ACCESS_MASK, LDAP_SID, SR_SECURITY_DESCRIPTOR | |
from impacket.structure import Structure | |
from impacket.krb5 import constants |