Skip to content

Commit

Permalink
Update sos-.net-4-stig.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Mar 16, 2024
1 parent f41340f commit 670ffd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos-.net-4-stig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ ForEach ($DotNetVersion in (Get-ChildItem $netframework64 -Directory)) {
Write-Host "Disabled Strong Name Bypass for $DotNetVersion 64-Bit" -ForegroundColor White -BackgroundColor Black
}
#Vul ID: V-81495 Rule ID: SV-96209r2_rule STIG ID: APPNET0075
If (Test-Path -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\$DotNetVersion\SchUseStrongCrypto\") {
If (Test-Path -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\$DotNetVersion\SchUseStrongCrypto") {
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\$DotNetVersion\" -Name "SchUseStrongCrypto" -Value "1" -Force | Out-Null
Write-Host "Enforced Strong Crypto for $DotNetVersion 64-Bit" -ForegroundColor White -BackgroundColor Black
}
Expand Down

0 comments on commit 670ffd4

Please sign in to comment.