Exploit databaseDownload repository ZIP
GH-ea91ecf629103514d4b348ce44007631
jamf/cve-2020-1206-poc
Sources for CVE-2020-1206
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files34
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- Config-CDC.ps1
- Config-DM.ps1
- Config-ENDPOINT.ps1
- Config-PDC.ps1
- Config-RODC.ps1
- Config-SDC.ps1
- Config-TDC.ps1
- ConfigGroupPolicyForClaims.ps1
- Create-ADObject.ps1
- Create-Account.ps1
- CreateLocalSideForestTrust.ps1
- Get-CertHash.ps1
- Get-OSVersion.ps1
- GetAvailablePort.ps1
- GetLDSInstanceGUID.ps1
- GetVmParameters.ps1
- GetVmParametersByComputerName.ps1
- GptTmpl.txt
- InstallADLDS.ps1
- InstallADLDSAnswerFile.txt
- Join-Domain.ps1
- NewCentralAccessPolicy.ps1
- NewCentralAccessRule.ps1
- NewClaimType.ps1
- NewResourceProperty.ps1
- PromoteChildDomain.ps1
- PromoteDomainController.ps1
- PromoteRODC.ps1
- Protocol.xml
- RestartAndRun.ps1
- RestartAndRunFinish.ps1
- SetAutoLogon.ps1
- SetNetworkConfiguration.ps1
- WaitFor-ComputerReady.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TestSuites/ADFamily/Setup/Scripts/NewCentralAccessRule.ps1
PowerShell · 1,289 bytes#############################################################
## Copyright (c) Microsoft. All rights reserved.
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
#############################################################
#-----------------------------------------------------------------------------------------------
# Define a New Central Access Rule
#-----------------------------------------------------------------------------------------------
Param
(
[string]$Name,
[string]$ClaimTypeName,
[string]$ClaimTypeValue,
[string]$ResourcePropertyName,
[string]$ResourcePropertyValue
)
Write-Host "Creating a New Central Access Rule: $Name ..." -ForegroundColor Yellow
$Condition = "(@RESOURCE.$ResourcePropertyName == `"$ResourcePropertyValue`")"
$Acl = "O:SYG:SYD:AR(A;;FA;;;OW)(A;;FA;;;BA)(A;;FA;;;SY)(XA;;FA;;;AU;(@USER.$ClaimTypeName Any_of {`"$ClaimTypeValue`"}))"
New-ADCentralAccessRule -Name $Name -ResourceCondition $Condition -CurrentAcl $Acl
try
{
$CentralAccessRule = Get-ADCentralAccessRule -Identity $Name
}
catch
{
Throw "New Central Access Rule Creation Failed!"
}
$CentralAccessRule
Write-Host "New Central Access Rule Created Successfully. DisplayName: $Name" -ForegroundColor Green