Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Update Invoke-Kerberoast.ps1 #1358

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions data/module_source/credentials/Invoke-Kerberoast.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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 = ''
Expand Down