Skip to content

Commit c30a08f

Browse files
authored
Update Invoke-HAFNIUMCheck.ps1
1 parent 2082933 commit c30a08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Invoke-HAFNIUMCheck.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function CVE-2021-26855{
9494
}
9595

9696
elseif(test-path $env:ExchangeInstallPath\Logging\HttpProxy){
97-
foreach ($folder in get-ChildItem "${env:ExchangeInstallPath}Logging\HttpProxy"){
97+
foreach ($folder in get-ChildItem "${env:ExchangeInstallPath}\Logging\HttpProxy"){
9898
write-host -ForegroundColor cyan "[+] " -NoNewline; Write-Host -ForegroundColor Green "Checking $folder Logs"
9999
$out = Import-Csv -Path (Get-ChildItem -Recurse -Path "$env:ExchangeInstallPath\Logging\HttpProxy" -Filter '*.log').FullName | Where-Object { $_.AnchorMailbox -like 'ServerInfo~*/*' -or $_.BackEndCookie -like 'Server~*/*~*'} | select DateTime, AnchorMailbox, UrlStem, RoutingHint, ErrorCode, TargetServerVersion, BackEndCookie, GenericInfo, GenericErrors, UrlHost, Protocol, Method, RoutingType, AuthenticationType, ServerHostName, HttpStatus, BackEndStatus, UserAgent
100100
if($out){

0 commit comments

Comments
 (0)