A Logo

Feel free to include my content in your page via my
RSS feed

Help Irongeek.com pay for
bandwidth and research equipment:

Subscribestar or Patreon

Search Irongeek.com:

Irongeek Button
Social-engineer-training Button

Help Irongeek.com pay for bandwidth and research equipment:


CrackMapExec - Owning Active Directory by using Active Directory - Marcello Salvati Derbycon 2016 (Hacking Illustrated Series InfoSec Tutorial Videos)

CrackMapExec - Owning Active Directory by using Active Directory
Marcello Salvati
Derbycon 2016

Over the past few years there have been incredible research and advances in offensive Active Directory techniques: we are now able to essentially use Active Directory against itself by abusing builtin Microsoft features (e.g. 'Living off the Land'). The introduction of PowerShell has only made this easier by allowing access to low-level API calls through a powerful scripting language: reflectively executing code in memory, finding actively logged in domain administrators and much more is now all possible using only built-in Windows features. The techniques have advanced very quickly, and now as pentesters we need a tool that can take full advantage of these techniques. Look no further than CrackMapExec! Awkwardly named, fully open-source and hosted on Github: it aims to be a one-stop-shop for all of your offensive Active Directory needs by combining the power of Python, Powersploit (https://github.com/PowerShellMafia/PowerSploit) and the Impacket library (https://github.com/CoreSecurity/impacket)! Taking inspiration from previous tools such as: - smbexec (https://github.com/pentestgeek/smbexec) - smbmap (https://github.com/ShawnDEvans/smbmap) - credcrack (https://github.com/gojhonny/CredCrack) It allows you to quickly and efficiently import credentials from Empire and Metasploit, replay credentials, pass-the-hash, execute commands, powershell payloads, spider SMB shares, query LDAP, dump SAM hashes, the NTDS.dit, interact with MSSQL databases and lots more in a fully concurrent pure Python script that requires no external tools and is completely OpSec safe! (no binaries are uploaded to disk!). We will be taking a fairly deep dive into CrackMapExec's internals to explain how it works under the hood, outlining the key differences and improvements between it and it's predecessors (using primarily live demos) while also explaining in detail how the attacks actually work from a network and domain standpoint and how to properly defend against them.

A Full-time pentester/security consultant at Coalfire Labs who has a passion for creating tools and eating Sushi in his free time. He is an active contributor to multiple open-source projects/tools such as Responder, Impacket, Kali Nethunter, the Veil Framework and has also created and been actively maintaining multiple open-source projects.


Back to Derbycon 2016 video list

Printable version of this article

15 most recent posts on Irongeek.com:

If you would like to republish one of the articles from this site on your webpage or print journal please contact IronGeek.

Copyright 2020, IronGeek
Louisville / Kentuckiana Information Security Enthusiast