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 files16

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

TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearBranchCacheBuffer.ps1

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

param(
[string]$ServerComputerName = $computerName,
[string]$usr = $user,
[string]$pwd = $password
)
	
	$serviceObj = get-service -computername $ServerComputerName PeerDistSvc
	Stop-Service -inputObject $serviceObj -force

	$CommandLine = "netsh branchcache flush"
	.\RemoteExecuteCommand.ps1 $ServerComputerName "$CommandLine" $usr $pwd
	sleep 1

	#del /s /q /f C:\Windows\ServiceProfiles\NetworkService\AppData\Local\PeerDistRepub\*.* 
	
	While($serviceObj.Status -ne "Running")
	{
		Start-Service -inputObject $serviceObj
		sleep 1
	}

return $true