Eventvwr.exe

Displays Windows Event Logs in a GUI window.

Paths

  • C:\Windows\System32\eventvwr.exe
  • C:\Windows\SysWOW64\eventvwr.exe

Commands

UAC Bypass

During startup, eventvwr.exe checks the registry value `HKCU\Software\Classes\mscfile\shell\open\command` for the location of mmc.exe, which is used to open the eventvwr.msc saved console file. If the location of another binary or script is added to this registry value, it will be executed as a high-integrity process without a UAC prompt being displayed to the user.

Use case: Execute a binary or script as a high-integrity process without a UAC prompt.

Privileges: User

eventvwr.exe

UAC Bypass

During startup, eventvwr.exe uses .NET deserialization with `%LOCALAPPDATA%\Microsoft\EventV~1\RecentViews` file. This file can be created using https://github.com/pwntester/ysoserial.net

Use case: Execute a command to bypass security restrictions that limit the use of command-line interpreters.

Privileges: Administrator

ysoserial.exe -o raw -f BinaryFormatter - g DataSet -c "{CMD}" > RecentViews & copy RecentViews %LOCALAPPDATA%\Microsoft\EventV~1\RecentViews & eventvwr.exe

Detection

Resources