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 files89
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- Add-AdRemoteUserToLocalGroup.ps1
- Add-DFSFolder.ps1
- Add-Printer.ps1
- Change-DomainUserPassword.ps1
- Check-ReturnValue.ps1
- Config-FileSharing.ps1
- Create-AdUserWithGroupMembership.ps1
- Create-DFSNamespace.ps1
- Create-Folder.ps1
- Create-ManagedServiceAccount.ps1
- Create-SelfSignedCert.ps1
- Create-ShadowCopy.ps1
- CreateLocalSideForestTrust.ps1
- Disable-ICMPRedirect.ps1
- Disable-IPv6.ps1
- Disable_Firewall.ps1
- Enable-AdRecyleBin.ps1
- Enable-WinRM.ps1
- EnableRemoteAccess.ps1
- Execute-RemoteScript.ps1
- Find-PtfConfigFiles.ps1
- Get-AdLdsInstanceId.ps1
- Get-AvailablePort.ps1
- Get-CertHash.ps1
- Get-DomainControllerParameters.ps1
- Get-DomainGuid.ps1
- Get-DomainNetbiosName.ps1
- Get-DomainSid.ps1
- Get-ForestFuncLvl.ps1
- Get-InstalledScriptPath.ps1
- Get-OSVersion.ps1
- Get-OSVersionNumber.ps1
- Get-Parameter.ps1
- GetVMNameByComputerName.ps1
- GetVmParameters.ps1
- GetVmParametersByComputerName.ps1
- GptTmpl.txt
- Install-ADDS.ps1
- Install-AdCertificateService-Feature.ps1
- Install-AdLds-Feature.ps1
- Install-AdLds-Instance.ps1
- Install-DFSComponent.ps1
- Install-DfsManagement-Feature.ps1
- Install-FSRM.ps1
- Install-IIS.ps1
- Install-Iis-Feature.ps1
- Install-SelfSignedCert.ps1
- InstallADLDS.ps1
- InstallADLDSAnswerFile.txt
- Join-Domain.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
CommonScripts/Modify-PtfConfigFiles.ps1
PowerShell · 2,174 bytes##################################################################################
## Copyright (c) Microsoft Corporation. All rights reserved.
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
##################################################################################
#############################################################################
##
## Microsoft Windows Powershell Scripting
## File: Modify-PtfConfigFiles.ps1
## Purpose: Modify PtfConfig files in both \bin and source\server\testcode\testsuite folders with specified property name and value.
## Requirements: Windows Powershell 2.0
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
## Windows Server 2016 and later
##
##############################################################################
Param
(
[parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[System.IO.FileInfo[]]$Files,
[parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$ProperyName,
[parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$ProperyValue
)
foreach ($File in $Files)
{
Write-Host "Modifying file: $($File.FullName)..." -ForegroundColor Yellow
Write-Host "Turn off Read-Only arribute"
Set-ItemProperty -Path $File.FullName -Name IsReadOnly -Value $false
Write-Host "Modify property: $ProperyName with value: $ProperyValue"
[xml]$FileContent = Get-Content $File.FullName
$PropertyNodes = $FileContent.GetElementsByTagName("Property")
foreach($PropertyNode in $PropertyNodes)
{
if($PropertyNode.GetAttribute("name") -eq $ProperyName)
{
$PropertyNode.SetAttribute("value", $ProperyValue)
$IsNodeFound = $true
break
}
}
if($IsNodeFound)
{
$FileContent.Save($File.FullName)
}
else
{
throw "Set PtfConfig failed: Cannot find the node whose name attribute is $ProperyName"
}
Write-Host "Turn on Read-only attribute"
Set-ItemProperty -Path $File.FullName -Name IsReadOnly -Value $true
}