Course contentsShow
← Security
Lesson 2238 of 3,05243. Offensive Security ToolingFree lesson

Impacket Suite for Windows Network Attacks

Leverage Impacket tools for SMB relay, Pass-the-Hash, Pass-the-Ticket, and remote command execution against Windows targets.

Impacket Suite for Windows Network Attacks

What You'll Learn

You'll master how to use Impacket—a powerful Python-based collection of tools—to execute SMB relay attacks, Pass-the-Hash, Pass-the-Ticket, and remote command execution against Windows networks.

What Is Impacket?

Impacket is an open-source Python library and toolkit designed for working with network protocols, especially those in Windows environments. Think of it as a Swiss Army knife for penetration testers attacking Active Directory and Windows networks—it provides low-level access to SMB, LDAP, Kerberos, and other critical protocols without needing a Windows machine.

Core Attack Techniques

Pass-the-Hash (PtH)

Instead of cracking password hashes, Impacket tools like psexec.py, smbexec.py, and wmiexec.py let you authenticate directly using NTLM hashes. If you've harvested credentials from a compromised system (lessons 2151, 2157), you can immediately move laterally without ever knowing the plaintext password.

Example tool: psexec.py DOMAIN/user@target -hashes :ntlmhash

Pass-the-Ticket (PtT)

Using getTGT.py and getST.py, you can forge or replay Kerberos tickets to authenticate as compromised users—essential after extracting .kirbi or .ccache files (lesson 2152).

SMB Relay Attacks

With ntlmrelayx.py, you can intercept NTLM authentication attempts (often triggered by Responder from lesson 2237) and relay them to other systems, potentially gaining administrative access without credentials.

Remote Execution

Tools like wmiexec.py provide stealthy remote command execution via WMI, while dcomexec.py uses DCOM for similar purposes—both avoiding traditional PSExec signatures that defenses watch for (lessons 2153-2154).

Practical Workflow

Capture credentials or hashes → Use Impacket tools to authenticate → Execute commands remotely → Pivot deeper into the network.

Key Takeaway: Impacket transforms harvested Windows credentials and tickets into actionable remote access, enabling Pass-the-Hash, Pass-the-Ticket, SMB relay, and covert command execution across enterprise networks.