Exploit database

GH-e0e6dfd641f78928850d6bb19e8ad663

o0matte0o/cve-2022-41099-fix

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-41099

1 source

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

Repository files6
o0matte0o/cve-2022-41099-fixRevision 4c2ba6d75fd1

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

DetectionScript.ps1

PowerShell · 419 bytes
$WINREA = reagentc /info | findstr "\\?\GLOBALROOT\device"
$WINREB = $WINREA.replace("Windows RE location: ","").TRIM()
$WINREC = $WINREB + "\winre.wim"
$WINRED = $WINREC + " /index:1"
$WINREE = "Dism /Get-ImageInfo /ImageFile:$WINRED"
$WINREF = Invoke-Expression $WINREE

If ($WINREF -contains "ServicePack Build : 2486") {
    Write-Host "up-to-date"
    exit 0
} Else {
    Write-Error "not up-to-date"
    exit 1
}