Skip to content

Commit

Permalink
Create CVE-2013-3900.ps1
Browse files Browse the repository at this point in the history
Signed-off-by: ҉αkα x⠠⠵ <[email protected]>
  • Loading branch information
4k4xs4pH1r3 authored Dec 9, 2024
1 parent 15677c4 commit c812fc4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Microsoft/Vulns/CVE-2013-3900.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Create the registry key for 64-bit systems
New-Item -Path "HKLM:\Software\Microsoft\Cryptography\Wintrust\Config" -Force | Out-Null
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Cryptography\Wintrust\Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord

# Create the registry key for 32-bit applications on 64-bit systems
New-Item -Path "HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config" -Force | Out-Null
Set-ItemProperty -Path "HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord

# Create an array of custom objects to store the key details
$keyDetails = @(
[PSCustomObject]@{
Path = "HKLM:\Software\Microsoft\Cryptography\Wintrust\Config"
Key = "EnableCertPaddingCheck"
Value = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Cryptography\Wintrust\Config").EnableCertPaddingCheck
},
[PSCustomObject]@{
Path = "HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config"
Key = "EnableCertPaddingCheck"
Value = (Get-ItemProperty -Path "HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config").EnableCertPaddingCheck
}
)

# Display the key details in a table format
$keyDetails | Format-Table -AutoSize

Write-Host "Registry keys added successfully."

0 comments on commit c812fc4

Please sign in to comment.