Overview
Impacket is a collection of Python classes and tools for working with network protocols. Security teams use it for protocol analysis, interoperability testing and authorized Windows-domain assessments; some utilities are highly intrusive, so use a dedicated lab or an explicitly scoped engagement.
Key features
Protocol implementations; reusable Python libraries; example utilities; SMB and Windows-network workflows.
Install & first run
# Python library plus the example scripts (psexec.py, secretsdump.py, ...)
python3 -m pip install --user impacket
# isolated alternative
pipx install impacket
# Kali / Debian package
sudo apt install python3-impacket
# Dump NTLM hashes from an authorized lab host
impacket-secretsdump -just-dc-ntlm domain.local/user:'Password'@10.0.0.5
# Or run the scripts straight from a source checkout
python3 examples/psexec.py domain.local/user:'Password'@10.0.0.5
There is no impacket command on its own - every protocol is a separate script. Docs: https://github.com/fortra/impacket
Real-world example
In an isolated Windows lab, validate protocol behavior and document the minimum evidence needed for an authorized assessment.
Common questions
Is Impacket a single scanner?
No. It is a library and a collection of protocol-oriented tools.
Which scripts do I start with?
secretsdump.py for credential extraction, psexec.py, wmiexec.py and smbexec.py for execution, GetUserSPNs.py for Kerberoasting. Everything else builds on those.
Does it work from Linux against Windows?
Yes - that is its main use. It speaks the protocols natively over Python, so no Windows tooling is needed on the attacking side.
Is it maintained?
Actively, by Fortra (formerly SecureAuth). Install from PyPI rather than a stale distro package.
Related tools
BloodHound Community Edition
Map Active Directory privilege paths in a graph and see which group memberships actually reach Domain Admin. Free CE, runs as a Docker stack.
Keep exploring: browse every assessment phase in the Pentest Hub.
Authorized testing only — only ever test systems you own or have explicit written permission to assess.
