diff --git a/impacket/examples/ldap_shell.py b/impacket/examples/ldap_shell.py index 2a31ed5bb..ef808888b 100755 --- a/impacket/examples/ldap_shell.py +++ b/impacket/examples/ldap_shell.py @@ -17,15 +17,52 @@ import sys import cmd import random +import binascii import ldap3 from ldap3.core.results import RESULT_UNWILLING_TO_PERFORM from ldap3.utils.conv import escape_filter_chars from six import PY2 import shlex from impacket import LOG +from Cryptodome.Hash import MD4 from ldap3.protocol.microsoft import security_descriptor_control from impacket.ldap.ldaptypes import ACCESS_ALLOWED_OBJECT_ACE, ACCESS_MASK, ACCESS_ALLOWED_ACE, ACE, OBJECTTYPE_GUID_MAP from impacket.ldap import ldaptypes +from impacket.structure import Structure, hexdump + +class MSDS_MANAGEDPASSWORD_BLOB(Structure): + structure = ( + ('Version','