Skip to content

Commit

Permalink
Updating HardeningKitty Score
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6d69636b committed Dec 7, 2020
1 parent 9e40e5f commit 9baf0dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Invoke-HardeningKitty.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,8 @@

# HardeningKitty Score
$StatsTotal = $StatsPassed + $StatsLow + $StatsMedium + $StatsHigh
$ScoreTotal = $StatsTotal * 3
$ScoreAchived = $StatsPassed * 3 + $StatsLow * 2 + $StatsMedium
$ScoreTotal = $StatsTotal * 4
$ScoreAchived = $StatsPassed * 4 + $StatsLow * 2 + $StatsMedium
$HardeningKittyScore = ([int] $ScoreAchived / [int] $ScoreTotal) * 5 + 1
$HardeningKittyScoreRounded = [math]::round($HardeningKittyScore,2)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ PS C:\> Invoke-HardeningKitty -EmojiSupport

## HardeningKitty Score

Each Passed finding gives 3 points, a Low finding gives 2 points, a Medium finding gives 1 point and a High Finding gives 0 points.
Each Passed finding gives 4 points, a Low finding gives 2 points, a Medium finding gives 1 point and a High Finding gives 0 points.

The formula for the HardeningKitty Score is _(Points achieved / Maximum points) * 5 + 1_.

Expand Down

0 comments on commit 9baf0dc

Please sign in to comment.