Skip to content
Viktor Dronov edited this page May 1, 2020 · 6 revisions

Windows-Path-Enumerate

This script fix vulnerability “Microsoft Windows Unquoted Service Path Enumeration” (Nessus plugin ID 63155) and similar problems with uninstall strings Script modify values in the next registry keys:

  • HKLM:\SYSTEM\CurrentControlSet\Services\ImagePath
  • HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UninstallString
  • HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\UninstallString

For getting full help for latest script could be used Windows_Path_Enumerate.ps1 -Help

EXTRA IMPORTANT: Test script before use in production

What to do (First steps)

  1. Start PowerShell as Administrator
  2. Check PSVersion. For that run next command
    $PSVersionTable.PSVersion
  1. Download or clone repo Download ZIP
  2. Unzip archive
  3. Script that doing the work is: Windows_Path_Enumerate.ps1
  4. Start PowerShell, navigate to the unzipped folder and check Help
    • Example
    Set-Location "C:\Unzipped Dir\"
    .\Windows_Path_Enumerate.ps1 -Help
Clone this wiki locally