Exploit database

GH-ea91ecf629103514d4b348ce44007631

jamf/cve-2020-1206-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-1206

3 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files89
jamf/cve-2020-1206-pocRevision 9e917e593af3
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

CommonScripts/GetVmParametersByComputerName.ps1

PowerShell · 1,199 bytes
#############################################################
## Copyright (c) Microsoft. All rights reserved.
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
#############################################################

param
(
    [parameter(Mandatory=$true)]
    [ValidateScript({$_.Value.GetType().Name -eq "Hashtable"})]
    [ref]$RefParamArray,

    [parameter(Mandatory=$false)]
    [ValidateNotNullOrEmpty()]
    [String]$ConfigFile = "c:\temp\Protocol.xml" # Default config file for lab regression run
)
   
$paramArray = $RefParamArray.Value
[xml]$content = Get-Content $ConfigFile -ErrorAction Stop
$VMName = Get-Content c:\temp\name.txt

try 
{
    $currentCore = $content.lab.core
    foreach($paramNode in $currentCore.ChildNodes)
    {
        $paramArray[$paramNode.Name] = $paramNode.InnerText
    }

    $currentVM = $content.SelectSingleNode("//vm[name=`'$VMName`']")

    foreach($paramNode in $currentVM.ChildNodes)
    {
        $paramArray[$paramNode.Name] = $paramNode.InnerText
    }
}
catch
{
    [String]$Emsg = "Unable to read parameters from protocol.xml. Error happened: " + $_.Exception.Message
    throw $Emsg
}