LDAP Deleted Objects Query

Query for deleted objects

Tool
ldapsearch
Category
Post-Exploitation / AD Object Manipulation
Platform
linux
Requires
password
Protocols
LDAP

Open in Command Manager

Syntax

Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.

ldapsearch -H ldap://<ip> -D '<user>@<domain>' -w '<password>' -b 'CN=Deleted Objects,DC=voleur,DC=htb' -s sub '(isDeleted=TRUE)' -E '!1.2.840.113556.1.4.417' dn cn distinguishedName lastKnownParent whenChanged isDeleted

Examples

ldapsearch -H ldap://10.10.11.76 -D 'svc_ldap@voleur.htb' -w 'M1XyC9pW7qT5Vn' -b 'CN=Deleted Objects,DC=voleur,DC=htb' -s sub '(isDeleted=TRUE)' -E '!1.2.840.113556.1.4.417' dn cn distinguishedName lastKnownParent whenChanged isDeleted

Tags

ldapsearch ldap deleted objects