One Day Sec

What tools are used in bypass method two to locate and terminate log-related threads?

Method two uses `Get-WmiObject` in PowerShell to find the eventlog service’s PID, then `PsList` from Sysinternals to enumerate all threads in that process. The `ScTagQuery` tool (or Process Explorer) identifies which threads belong to the eventlog service by checking the Service Tag. Finally, a custom C++ program calls `OpenThread` and `TerminateThread` to end the eligible threads. The full code is available on GitHub. For a PowerShell-based alternative, see the original article’s reference to Penetration Techniques - Deletion and Bypass of Windows Logs.
PsListScTagQueryProcess ExplorerGet-WmiObjectTerminateThread

Browse all Q&A →