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 files8
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- DisableClusterNode.ps1
- EnableClusterNode.ps1
- FlushDNS.ps1
- GetClusterNodeStatus.ps1
- GetClusterResourceOwner.ps1
- MoveClusterResourceOwner.ps1
- MoveSmbWitnessClient.ps1
- RefreshNetAdapter.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/DisableClusterNode.ps1
PowerShell · 1,195 bytes#############################################################################
## Copyright (c) Microsoft. All rights reserved.
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
#############################################################################
[string]$nodeName
[string]$domain = $PtfProp_Common_DomainName
[string]$userName = $PtfProp_Common_AdminUserName
[string]$password = $PtfProp_Common_PasswordForAllUsers
$clusterServiceName = "ClusSvc"
$SecurePassword = New-Object System.Security.SecureString
if($Domain -eq $null -or $Domain.trim() -eq "")
{
$account = $UserName
}
else
{
$NetBIOSName = $Domain.Split(".")[0]
$account = "$NetBIOSName\$UserName"
}
for($i=0; $i -lt $Password.Length; $i++)
{
$SecurePassword.AppendChar($Password[$i])
}
$credential = New-Object system.Management.Automation.PSCredential($account,$SecurePassword)
$service = Get-WmiObject -ComputerName $nodeName -Credential $credential -Class Win32_Service | Where-Object {$_.Name -eq $clusterServiceName}
if($service -eq $null)
{
return $FALSE
}
try
{
$ret = $service.StopService()
}
catch
{
return $FALSE
}
return $TRUE