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
# Default Check (where KDU writes by default) | |
write-host -ForegroundColor green "Checking Default Location" | |
$discoveries=@() | |
gi "HKLM:\" | % { | |
$parent = $_.PSpath | |
(gp $_.PSpath).PsObject.Properties | % { | |
if($_.Value[0] -eq 77 -and $_.Value[1] -eq 90 -and $_.Value.length -gt 100){ | |
write-host -ForegroundColor red "Discovered a potential driver rootkit embedded in registry: " | |
write-host -ForegroundColor red "$parent$($_.Name)" | |
$discoveries += "$parent$($_.Name)" |