Created
April 7, 2020 07:00
-
-
Save technion/77cfdfdbbc14286a8657d0f733d91612 to your computer and use it in GitHub Desktop.
Scan Exchange server for CVE-2020-0688 vulnerability
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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