Exploit database

GH-9d372fa95d7adca631ed96ea3a5e273b

adrian-gatu/tenable-vulnerability-management

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2013-3900

11 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files30

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."
}