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-000090.ps1

PowerShell · 2,282 bytes
 <#
.SYNOPSIS
    # Group Policy objects must be reprocessed even if they have not changed..
    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-000090

.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-000090.ps1 
#>


# Ensure the script is run as Administrator
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
    Write-Error "This script must be run as Administrator."
    exit
}

# Define registry path and value
$registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Group Policy\{35378EAC-683F-11D2-A89A-00C04FBBCFA2}"
$valueName = "NoGPOListChanges"
$desiredValue = 0

# Check if the registry path exists; create it if missing
if (-not (Test-Path $registryPath)) {
    Write-Host "Registry path does not exist. Creating path..." -ForegroundColor Yellow
    New-Item -Path $registryPath -Force | Out-Null
}

# Get the current value of NoGPOListChanges
$currentValue = (Get-ItemProperty -Path $registryPath -Name $valueName -ErrorAction SilentlyContinue).$valueName

# Check if the value is correctly set
if ($currentValue -ne $desiredValue) {
    Write-Host "NoGPOListChanges is not set correctly. Setting it to 0..." -ForegroundColor Yellow
    Set-ItemProperty -Path $registryPath -Name $valueName -Value $desiredValue -Type DWord -Force
    Write-Host "NoGPOListChanges has been set to 0." -ForegroundColor Green
} else {
    Write-Host "NoGPOListChanges is already correctly set to 0." -ForegroundColor Green
}

# Optional: Force Group Policy update to apply changes
Write-Host "Forcing Group Policy update..." -ForegroundColor Cyan
gpupdate /force

Write-Host "Configuration complete. Group Policy will now reprocess even if unchanged." -ForegroundColor Green