Skip to content

Commit

Permalink
Update/Fix Invoke-Kerberoast
Browse files Browse the repository at this point in the history
Commenting out, though it looks like it could be removed, two sections that throw errors. New-DynmaicParameter is not a function and I couldn't find it anywhere besides helper scripts on technet. 
Looks like it was first introduced in EmpireProject@71c795a#diff-494cc831008b28a810840a12d052d51e
  • Loading branch information
awsmhacks authored May 30, 2019
1 parent 5aae31e commit cc5de83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data/module_source/credentials/Invoke-Kerberoast.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -864,15 +864,15 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
[Switch]
$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 }
Expand All @@ -890,9 +890,9 @@ 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 ($PSBoundParameters -and ($PSBoundParameters.Count -ne 0)) {
# New-DynamicParameter -CreateVariables -BoundParameters $PSBoundParameters
#}

if ($UserSearcher) {
$IdentityFilter = ''
Expand Down

0 comments on commit cc5de83

Please sign in to comment.