Part I Preliminaries
Chapter 1 impacket Overview & Directory Layout
C:.
│ # impacket root: protocol implementations and base modules
│ cdp.py / crypto.py / dhcp.py / dns.py / dot11.py / Dot11Crypto.py
│ dpapi.py / ese.py / http.py / nmb.py / ntlm.py / spnego.py
│ smb.py / smb3.py / smb3structs.py / smbconnection.py / smbserver.py
│ structure.py / system_errors.py / tds.py / uuid.py / version.py / wps.py ...
│
├───dcerpc
│ └───v5 # py implementations of each RPC interface (Parts III & VI)
│ │ ndr.py / rpcrt.py / dtypes.py / enum.py / transport.py / epm.py # RPC foundations
│ │ atsvc.py / bkrp.py / dhcpm.py / drsuapi.py / dssp.py / even6.py
│ │ lsad.py / lsat.py / mimilib.py / nrpc.py / nspi.py / oxabref.py
│ │ par.py / rpch.py / rprn.py / rrp.py / samr.py / srvs.py
│ │ tsch.py / tsts.py / wkst.py / dcomrt.py ...
│ │
│ └───dcom # DCOM submodules (Part VI)
│ comev.py / oaut.py / scmp.py / vds.py / wmi.py
│
├───examples # common domain-pentest scripts: getTGT / getST / ticketer / secretsdump
│ │ # psexec / wmiexec / atexec / dcomexec / rpcmap / netview ...
│ └───ntlmrelayx # NTLM relay framework (attacks / clients / servers /
│ # socksplugins / utils subtrees omitted)
│
├───krb5 # Kerberos implementation (Part IV)
│ asn1.py / ccache.py / constants.py / crypto.py / gssapi.py
│ kerberosv5.py / keytab.py / pac.py / types.py
│
└───ldap # LDAP implementation
ldap.py / ldapasn1.py / ldaptypes.py
Next we walk through the key functions and methods of each module.