Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit f9b95c5

Browse files
author
James McGinnigle
committed
Fix build for import and run of Invoke-PrivescAudit
1 parent 0959882 commit f9b95c5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

PowerSploit.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ FunctionsToExport = @(
9090
'Get-RegistryAutoLogon',
9191
'Get-SecurityPackages',
9292
'Get-ServiceDetail',
93-
'Get-ServiceUnquoted',
9493
'Get-SiteListPassword',
9594
'Get-System',
9695
'Get-TimedScreenshot',
9796
'Get-UnattendedInstallFile',
97+
'Get-UnquotedService',
9898
'Get-UserEvent',
9999
'Get-UserProperty',
100100
'Get-VaultCredential',
@@ -103,7 +103,6 @@ FunctionsToExport = @(
103103
'Install-ServiceBinary',
104104
'Install-SSP',
105105
'Invoke-ACLScanner',
106-
'Invoke-AllChecks',
107106
'Invoke-CheckLocalAdminAccess',
108107
'Invoke-CredentialInjection',
109108
'Invoke-DllInjection',
@@ -114,6 +113,7 @@ FunctionsToExport = @(
114113
'Invoke-Mimikatz',
115114
'Invoke-NinjaCopy',
116115
'Invoke-Portscan',
116+
'Invoke-PrivescAudit',
117117
'Invoke-ProcessHunter',
118118
'Invoke-ReflectivePEInjection',
119119
'Invoke-ReverseDnsLookup',

PowerSploit.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Get-ChildItem $PSScriptRoot | ? { $_.PSIsContainer -and ($_.Name -ne 'Tests') } | % { Import-Module $_.FullName -DisableNameChecking }
1+
Get-ChildItem $PSScriptRoot | ? { $_.PSIsContainer -and !('Tests','docs' -contains $_.Name) } | % { Import-Module $_.FullName -DisableNameChecking }

Recon/PowerView.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -6634,19 +6634,19 @@ System.Security.AccessControl.AuthorizationRule
66346634
[ValidateSet('AccessSystemSecurity', 'CreateChild','Delete','DeleteChild','DeleteTree','ExtendedRight','GenericAll','GenericExecute','GenericRead','GenericWrite','ListChildren','ListObject','ReadControl','ReadProperty','Self','Synchronize','WriteDacl','WriteOwner','WriteProperty')]
66356635
$Right,
66366636

6637-
[Parameter(Mandatory = $True, ParameterSetName=AccessRuleType)]
6637+
[Parameter(Mandatory = $True, ParameterSetName='AccessRuleType')]
66386638
[ValidateSet('Allow', 'Deny')]
66396639
[String[]]
66406640
$AccessControlType,
66416641

6642-
[Parameter(Mandatory = $True, ParameterSetName=AuditRuleType)]
6642+
[Parameter(Mandatory = $True, ParameterSetName='AuditRuleType')]
66436643
[ValidateSet('Success', 'Failure')]
66446644
[String]
66456645
$AuditFlag,
66466646

6647-
[Parameter(Mandatory = $False, ParameterSetName=AccessRuleType)]
6648-
[Parameter(Mandatory = $False, ParameterSetName=AuditRuleType)]
6649-
[Parameter(Mandatory = $False, ParameterSetName=ObjectGuidLookup)]
6647+
[Parameter(Mandatory = $False, ParameterSetName='AccessRuleType')]
6648+
[Parameter(Mandatory = $False, ParameterSetName='AuditRuleType')]
6649+
[Parameter(Mandatory = $False, ParameterSetName='ObjectGuidLookup')]
66506650
[Guid]
66516651
$ObjectType,
66526652

0 commit comments

Comments
 (0)