Skip to content

Commit

Permalink
Allow method registry for users (HKCU) in HailMary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6d69636b committed Dec 31, 2020
1 parent ad35c7a commit b54798d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Invoke-HardeningKitty.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@
#
If ($Finding.Method -eq 'Registry' -or $Finding.Method -eq 'RegistryList') {

If (-not($IsAdmin)) {
If (-not($IsAdmin) -and -not($Finding.RegistryPath.StartsWith("HKCU:\"))) {
$Message = "ID "+$Finding.ID+", "+$Finding.Name+", Method "+$Finding.Method+" requires admin priviliges. Test skipped."
Write-ProtocolEntry -Text $Message -LogLevel "Error"
Continue
Expand Down

0 comments on commit b54798d

Please sign in to comment.