Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ETW-Patch

  • This repository contains code that demonstrates how to patch the EtwEventWrite function from the ntdll.dll library on Windows using CGO. This technique modifies the behavior of EtwEventWrite by injecting custom assembly code that replaces the beginning of the function.

How it works?

  • Uses Windows API functions (GetModuleHandleA, GetProcAddress, VirtualProtect) to locate and modify the EtwEventWrite function in memory.

  • Defines a byte sequence (0x33, 0xC0, 0xC3) that represents the assembly instructions (XOR EAX, EAX; RET) used to replace the beginning of the EtwEventWrite function. This effectively nullifies the function's effect, making it return immediately without performing its intended actions.

About

code snippet provided demonstrates how to patch the EtwEventWrite function in the ntdll.dll library on Windows using CGO (C Go).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages