Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

ADSyncDump-BOF

> 编程语言
Open source

The ADSyncDump BOF is a port of Dirk-Jan Mollema's adconnectdump.py / ADSyncDecrypt into a Beacon Object File (BOF) with zero dependencies.

182 stars0 likes1 views
WebsiteGitHub

About

The ADSyncDump BOF is a port of Dirk-Jan Mollema's adconnectdump.py / ADSyncDecrypt into a Beacon Object File (BOF) with zero dependencies.

ADSyncDump BOF

The ADSyncDump BOF is a port of Dirkjan Mollema's adconnectdump.py / ADSyncDecrypt into a Beacon Object File (BOF) for use with Cobalt Strike, Sliver and Havoc.

[!NOTE] The tool has been tested on a Windows Server 2019 with Azure AD Connect version 2.2.1.0. The 32 bit version of the BOF is untested, but I included it for completeness sake. Use at your own risk.

Compilation

To compile the BOF, simply run make in the directory containing the source code. This will generate both 32-bit and 64-bit versions of the BOF.

bash
make

Usage

On Cobalt Strike, load the adsyncdump.cna script, for Sliver, use the extension install and extension load command to install the BOF. Once installed, laterally move to the AD Sync server as NT AUTHORITY\SYSTEM and run the adsyncdump command:

bash
beacon> adsyncdump

Background

This BOF came into existence a couple of years ago during an engagement after I ran into issues with the fact that the original Python script was too intrusive on client systems, and I had trouble getting the .NET version to run properly. As such I decided to reverse engineer the exact Win32 API calls used for the decryption process in my spare time and port it to a BOF.

Originally, I didn't plan to share this project due to the fact I felt doing so was irresponsible, given that the ADSync account held some absurd privileges, and detection of the existing tooling wasn't great. However, since then, the privileges of the ADSync account have been severely limited by Microsoft, making the impact less severe (still not great, but at least you can't edit conditional access policies anymore^wtf-microsoft).

In addition, given that other researchers have already published the information about the inner workings of the decryption process (lots of props to Dr Syynimaa[^aadinternals] and Dirkjan Mollema[^dirk-jan]), and the fact that detection has become more widespread, I now feel more comfortable sharing this BOF with the rest of the community (sorry for being late to the party).

License

This project is licensed under the MIT License - see the LICENSE file for details. I take no responsibility for any misuse or damages caused by the use of this tool. Only use it in environments where you have explicit permission to do so.

[^dirk-jan]:

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言