CravateRouge / bloodyAD

BloodyAD is an Active Directory Privilege Escalation Framework
MIT License
1.12k stars 112 forks source link

ldap3.core.exceptions.LDAPNoSuchObjectResult #19

Closed TryA9ain closed 1 year ago

TryA9ain commented 1 year ago

ldap3.core.exceptions.LDAPNoSuchObjectResult

i use

proxychains4 python bloodyAD.py -d xx.com -u test -p 'test' --host 10.1.1.1 setAttribute 'CN=wangleiaab,CN=Computers,DC=xx,DC=com' dNSHostName '["AD.xx.com"]'

but error

image
CravateRouge commented 1 year ago

As stated your dn CN=wangleiaab,CN=Computers,DC=xx,DC=com doesn't exist. Try with the sAMAccountName of the computer e.g wangleiaab$ or do a getObjectAttributes wangleiaab$ distinguishedName to have the exact DN.