Skip to content

Instantly share code, notes, and snippets.

@technion
Created April 7, 2020 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technion/77cfdfdbbc14286a8657d0f733d91612 to your computer and use it in GitHub Desktop.
Save technion/77cfdfdbbc14286a8657d0f733d91612 to your computer and use it in GitHub Desktop.
Scan Exchange server for CVE-2020-0688 vulnerability
Set-Strictmode -Version 2
$path = Get-WebApplication ecp
$ecppath = $path | where { $_.PhysicalPath -match 'Client' }
$found = Select-String validationKey -Path "$($ecppath.PhysicalPath)\web.config"
if ($found) {
Write-host "Server is vulnerable" -ForegroundColor Yellow
} else {
write-host "Server is not vulnerable"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment