private static void FindAttack(ISmartMemory memUtils)
{
byte[] bytes = BitConverter.GetBytes(4294967293U);
byte[] pattern = new byte[27]
{
137,21,0,0,0,0,139,21,0,0,0,0,246,194,3,
116,3,131,206,4,168,4,191,bytes[0],bytes[1],bytes[2],bytes[3]
};
scan = memUtils["client.dll"].Find(pattern);
if (scan.Success)
{
int tmp = memUtils.Read<int>((IntPtr)(scan.Address.ToInt32() + 2));
Offsets.Attack = new IntPtr(tmp - clientDllBase);
Logger.Info(ObjectEx.GetName(() => Offsets.Attack) + "\n" +Offsets.Attack.ToString("X8")
);
}
}