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 files4
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- Check-PSRemoting.ps1
- RDPConnectWithNegotiationApproach.ps1
- Run-TaskWithPSRemoting.ps1
- TriggerClientDisconnectAll.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ProtocolTestManager/Plugins/RDPClientPlugin/RDPClientPlugin/SUTControlAdapter/TriggerClientDisconnectAll.ps1
PowerShell · 1,085 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#This method is used to trigger RDP client to close all RDP connection to server for clean up.
cmd /c net use \\$PtfProp_SUTName\$PtfProp_SUTSystemDrive$ $PtfProp_SUTUserPassword /user:$PtfProp_SUTUserName
cmd /c del \\$PtfProp_SUTName\$PtfProp_SUTSystemDrive$\DisconnectAll.signal /F
# Check SUT started the PS Remoting
$isSutPSRemotingStarted = .\Check-PSRemoting.ps1 $PtfProp_SUTName
if(-not $isSutPSRemotingStarted) {return -1}
# Run task to simulate a client initiated disconnect request
$returnValue = .\Run-TaskWithPSRemoting.ps1 $PtfProp_SUTName $PtfProp_TriggerClientDisconnectAll_Task $PtfProp_SUTUserName $PtfProp_SUTUserPassword
if($returnValue -lt 0) {return $returnValue}
$count = 0
while (!(test-path \\$PtfProp_SUTName\$PtfProp_SUTSystemDrive$\DisconnectAll.signal) -and $count -lt 20)
{
$count++
sleep 1
}
cmd /c net use \\$PtfProp_SUTName\$PtfProp_SUTSystemDrive$ /delete /y
return 0 #operation succeed