Closed salu90 closed 4 years ago
Adds:
ETW
SharpSploit.Evasion
PatchEtw
Disable ETW by patching the EtwEventWrite function in ntdll.dll.
EtwEventWrite
ntdll.dll
Code has been kindly stolen and adapted from Adam Chester (https://blog.xpnsec.com/hiding-your-dotnet-etw/) and Mythic (https://github.com/its-a-feature/Mythic).
Tested on Windows 10 1909 and .NET Framework 4.8
Thanks for the suggestion @rasta-mouse! I've added a line of code to restore the original memory permissions like in your AMSI patch.
Adds:
ETW
class in theSharpSploit.Evasion
namespacePatchEtw
functionDisable ETW by patching the
EtwEventWrite
function inntdll.dll
.Code has been kindly stolen and adapted from Adam Chester (https://blog.xpnsec.com/hiding-your-dotnet-etw/) and Mythic (https://github.com/its-a-feature/Mythic).
Tested on Windows 10 1909 and .NET Framework 4.8