Exploit databaseDownload repository ZIP
GH-9d372fa95d7adca631ed96ea3a5e273b
adrian-gatu/tenable-vulnerability-management
Sources for CVE-2013-3900
11 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files30
adrian-gatu/tenable-vulnerability-managementRevision 5083d36075aa
- ↑..Parent directory
- CVE-2013-3900-Remediation.ps1
- STIG-ID-WN10-00-000150.ps1
- STIG-ID-WN10-AU-000045.ps1
- STIG-ID-WN10-AU-000050.ps1
- STIG-ID-WN10-AU-000082.ps1
- STIG-ID-WN10-AU-000500.ps1
- STIG-ID-WN10-AU-000505.ps1
- STIG-ID-WN10-AU-000565.ps1
- STIG-ID-WN10-AU-000580.ps1
- STIG-ID-WN10-AU-000585.ps1
- STIG-ID-WN10-CC-000010.ps1
- STIG-ID-WN10-CC-000025.ps1
- STIG-ID-WN10-CC-000030.ps1
- STIG-ID-WN10-CC-000035.ps1
- STIG-ID-WN10-CC-000085.ps1
- STIG-ID-WN10-CC-000090.ps1
- STIG-ID-WN10-CC-000155.ps1
- STIG-ID-WN10-CC-000170.ps1
- STIG-ID-WN10-CC-000175.ps1
- STIG-ID-WN10-CC-000205.ps1
- STIG-ID-WN10-CC-000295.ps1
- STIG-ID-WN10-CC-000310.ps1
- STIG-ID-WN10-CC-000326.ps1
- STIG-ID-WN10-CC-000327.ps1
- STIG-ID-WN10-CC-000330.ps1
- STIG-ID-WN10-CC-000360.ps1
- STIG-ID-WN10-CC-000370.ps1
- STIG-ID-WN10-SO-000030.ps1
- STIG-ID-WN10-SO-000080.ps1
- STIG-ID-WN10-SO-000185.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
STIG Implementations/STIG-ID-WN10-CC-000330.ps1
PowerShell · 1,925 bytes <#
.SYNOPSIS
# The Windows Remote Management (WinRM) client must not use Basic authentication.
.NOTES
Author : Adrian Gatu
LinkedIn : linkedin.com/in/adrian-gatu-55a7362ba/
GitHub : github.com/Adrian-Gatu
Date Created : 18-01-2025
Last Modified : 18-01-2025
Version : 1.0
CVEs : N/A
Plugin IDs : N/A
STIG-ID : WN10-CC-000330
.TESTED ON
Date(s) Tested : 18-01-2025
Tested By : Adrian Gatu
Systems Tested : Windows 10
PowerShell Ver. : 5.1.19041.5247
.USAGE
Example syntax:
PS C:\> .\STIG-ID-WN10-CC-000330.ps1
#>
# Define the Registry Path and Desired Value
$regPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client"
$valueName = "AllowBasic"
$desiredValue = 0
# Check if the registry path exists
if (Test-Path $regPath) {
# Get the current value of AllowBasic
$currentValue = Get-ItemProperty -Path $regPath -Name $valueName -ErrorAction SilentlyContinue
if ($currentValue.$valueName -eq $desiredValue) {
Write-Output "Compliant: $valueName is correctly set to $desiredValue."
} else {
Write-Output "Non-Compliant: $valueName is not set to $desiredValue. Remediating..."
# Set the value to 0 to disable Basic authentication
Set-ItemProperty -Path $regPath -Name $valueName -Value $desiredValue -Type DWord
Write-Output "Fixed: $valueName has been set to $desiredValue."
}
} else {
Write-Output "Non-Compliant: Registry path does not exist. Creating the path and setting the value..."
# Create the registry path and set the value
New-Item -Path $regPath -Force | Out-Null
Set-ItemProperty -Path $regPath -Name $valueName -Value $desiredValue -Type DWord
Write-Output "Fixed: Registry path created and $valueName set to $desiredValue."
}