Skip to content

BOFHound support for AdaptixC2 using ldapsearch native function.#128

Open
K4ySuh wants to merge 1 commit intoAdaptix-Framework:devfrom
K4ySuh:dev
Open

BOFHound support for AdaptixC2 using ldapsearch native function.#128
K4ySuh wants to merge 1 commit intoAdaptix-Framework:devfrom
K4ySuh:dev

Conversation

@K4ySuh
Copy link

@K4ySuh K4ySuh commented Mar 8, 2026

How does it work:

  • It wraps the original ldapsearch function and creates a new command ldapsearch_bh for those who want to save ldapsearch logs to their Log folder within their AdaptixC2 directory.
  • The script performs stitching over the ldapsearch results to ensure proper B64 output from ntsecuritydescriptor is present. Besides it does properly sanitize most of the problematic fields.
  • Only works when addding it from the client side, if you try to load it from the server it doesn't write to the actual Log folder, I don't really know why.
  • It does not create the Log folder if it's not created.

…und. It wraps the original ldapsearch function and creates a new command ldapsearch_bh for those who want to save ldapsearch logs to their Log folder within their AdaptixC2 directory. The scripts performs stitching over the ldapsearch results to ensure proper B64 output from ntsecuritydescriptor is present. Besides it does properly sanitize most of the problematic fields. Only works when addding it from the client side, if you try to load it from the server it doesn't write to the actual Log folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant