b4rtik / SharpAdidnsdump

c# implementation of Active Directory Integrated DNS dumping (authenticated user)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SharpAdidnsdump

SharpAdidnsdump is a c# implementation of Dirk-jan Mollema research: Getting in the zone dumping active directory dns with adidnsdump.

All the credits go to Dirk-jan Mollema and his research.

Features

Enumerate all hosts with IPs via AD LDAP and DNS query.

The first step is to list the zones available in DomainDnsZone using the filter (&(objectClass = DnsZone)(!(DC=*arpa))(!(DC=RootDNSServers))).

For each zone it is possible to list all Host objects with the filter (&(!(ObjectClass=DnsZone))(!(DC=@))(!(DC=*arpa))(!(DC=*DNSZones))) changing the RootDn of the query. It is necessary (!(ObjectClass=DnsZone)) because if the filter were used (objectClass=DnsNode) the hidden elements would be excluded.

Some of the records present via LDAP can be listed but the properties can't be readed. In my implementation I resolve the visibility of these records with the parsing of the Path property of the SearchResult object.

Usage

SharpAdidnsdumpis.exe dc-address

References

Getting in the zone dumping active directory dns with adidnsdump.

Adidnsdump

Feel free to contact me at: @b4rtik

About

c# implementation of Active Directory Integrated DNS dumping (authenticated user)

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C# 100.0%