Skip to content

Commit

Permalink
Merge pull request #57 from microsoft/main
Browse files Browse the repository at this point in the history
2021 03 04 release 2
  • Loading branch information
bill-long authored Mar 4, 2021
2 parents c7a5f99 + 3ede515 commit 12de2d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Security/Test-Hafnium.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ function Get-26855() {
$allResults = @()
$files | ForEach-Object {
$count++
Write-Progress -Activity "Checking for CVE-2021-26855 in the HttpProxy logs" -Status "$count / $($files.Count)" -PercentComplete ($count * 100 / $files.Count)
if ($count % 10 -eq 0) {
Write-Progress -Activity "Checking for CVE-2021-26855 in the HttpProxy logs" -Status "$count / $($files.Count)" -PercentComplete ($count * 100 / $files.Count)
}
if ((Get-ChildItem $_ -ErrorAction SilentlyContinue | Select-String "ServerInfo~").Count -gt 0) {
$fileResults = @(Import-Csv -Path $_ -ErrorAction SilentlyContinue | Where-Object { $_.AnchorMailbox -like 'ServerInfo~*/*' })
$fileResults | ForEach-Object {
Expand Down Expand Up @@ -63,8 +65,8 @@ function Get-27065() {

function Get-SuspiciousFiles() {
Write-Host "`r`nChecking for suspicious files"
$lsassFiles = Get-ChildItem -Recurse -Path "$env:WINDIR\temp\lsass.*dmp"
$lsassFiles += Get-ChildItem -Recurse -Path "c:\root\lsass.*dmp"
$lsassFiles = @(Get-ChildItem -Recurse -Path "$env:WINDIR\temp\lsass.*dmp")
$lsassFiles += @(Get-ChildItem -Recurse -Path "c:\root\lsass.*dmp")
if ($lsassFiles.Count -gt 0) {
Write-Warning "lsass.exe dumps found, please verify these are expected:"
$lsassFiles.FullName
Expand Down

0 comments on commit 12de2d1

Please sign in to comment.