Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

naweka/Disharmony

Repository files navigation

Disharmony

Harmony Hook Detector in 3 lines

public static bool IsHookedByHarmony(MethodBase method)
{
  var methodPtr = method.MethodHandle.GetFunctionPointer();
  var firstByte = Marshal.ReadByte(methodPtr);

  return firstByte == 0xE9;
}

About

Harmony Hook Detector in 3 lines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages