Skip to content

Commit

Permalink
Add MS11-046 check per user request
Browse files Browse the repository at this point in the history
  • Loading branch information
ihack4falafel committed Feb 22, 2018
1 parent 9cddfdc commit c1324da
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Windows/WinPrivCheck.bat
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ rem # KB3057191 | MS15-051 | X | X | SP2 | SP2 | SP2 | SP1 |
rem #-----------#----------#---------#-------#-------#---------#---------#-----#-------------------------------------------------------#
rem # KB2989935 | MS14-070 | X | X | SP2 | X | X | X | TCP/IP - Local Privilege Escalation |
rem #-----------#----------#---------#-------#-------#---------#---------#-----#-------------------------------------------------------#

rem # KB2503665 | MS11-046 | X | SP3 | SP2 | SP1/2 | SP1/2 | SP1 | 'afd.sys' - Local Privilege Escalation |
rem #-----------#----------#---------#-------#-------#---------#---------#-----#-------------------------------------------------------#

wmic qfe get Caption,Description,HotFixID,InstalledOn | findstr /C:"KB2592799" | find /i "KB2592799" 1>NUL
IF not errorlevel 1 (
Expand Down Expand Up @@ -417,7 +418,16 @@ IF not errorlevel 1 (

)

wmic qfe get Caption,Description,HotFixID,InstalledOn | findstr /C:"KB2503665" | find /i "KB2503665" 1>NUL
IF not errorlevel 1 (

echo MS11-046 patch is installed :(

) ELSE (

echo MS11-046 patch is NOT installed!

)

@echo on

Expand Down

0 comments on commit c1324da

Please sign in to comment.