Kevin-Robertson / Inveigh

.NET IPv4/IPv6 machine-in-the-middle tool for penetration testers
BSD 3-Clause "New" or "Revised" License
2.44k stars 433 forks source link

Bug: ADIDNS doesn't work for the System partition. #29

Open haim-n opened 3 years ago

haim-n commented 3 years ago

Hi,

The ADIDNS functionality is absolutely awesome and works great when the DNS zone is stored under DomainDNSZones. But it doesn't work when the zone is in the System partition. Some of the functions just don't have 'System' under the the ValidateSet array:

[parameter(Mandatory=$false)][ValidateSet("DomainDNSZones","ForestDNSZones")][String]$Partition = "DomainDNSZones",

But even after fixing it, I still received the following error, and the DNS node was not created:

WARNING: [!] [2021-06-02T10:18:48] Exception calling "SendRequest" with "1" argument(s): "The object does not exist."
$connection.SendRequest($request) > $null

In Powermad, the system partition functionality works correctly.

Many thanks and kudos for these amazing tools (and for the research of ADIDNS risks)! Haim.