From dddf3b9e7c8497a66c568c740cd5d1b76d61ac38 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 30 May 2019 09:25:28 -0500 Subject: [PATCH] Update Invoke-Kerberoast.ps1 Addressing two sections that throw errors. Removing them in dev, these are commented out in master if anyone wants to dig in further but New-DynamicParameter is not a function and I couldn't find it anywhere besides helper scripts on technet. Looks like it was first introduced in https://github.com/EmpireProject/Empire/commit/71c795a4489b133cfad7d599f9d92a1004db5934 --- data/module_source/credentials/Invoke-Kerberoast.ps1 | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/data/module_source/credentials/Invoke-Kerberoast.ps1 b/data/module_source/credentials/Invoke-Kerberoast.ps1 index 51cf584d4..ad60c9028 100644 --- a/data/module_source/credentials/Invoke-Kerberoast.ps1 +++ b/data/module_source/credentials/Invoke-Kerberoast.ps1 @@ -865,14 +865,6 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled. $Raw ) - DynamicParam { - $UACValueNames = [Enum]::GetNames($UACEnum) - # add in the negations - $UACValueNames = $UACValueNames | ForEach-Object {$_; "NOT_$_"} - # create new dynamic parameter - New-DynamicParameter -Name UACFilter -ValidateSet $UACValueNames -Type ([array]) - } - BEGIN { $SearcherArguments = @{} if ($PSBoundParameters['Domain']) { $SearcherArguments['Domain'] = $Domain } @@ -889,10 +881,6 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled. } PROCESS { - #bind dynamic parameter to a friendly variable - if ($PSBoundParameters -and ($PSBoundParameters.Count -ne 0)) { - New-DynamicParameter -CreateVariables -BoundParameters $PSBoundParameters - } if ($UserSearcher) { $IdentityFilter = ''