Advertisement
rimsky82

trainer- find pointed address

Apr 16th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. private int findAddress(int StaticPointer, int[] Offsets)
  2.         {
  3.             byte[] tmp;
  4.             int address = BaseAddress + StaticPointer;
  5.             for (int i = 0; i < Offsets.Count(); i++)
  6.             {
  7.                 tmp = new byte[4];
  8.                 ReadProcessMemory(ProcessHandle, address, tmp, tmp.Length, 0);
  9.                 address = BitConverter.ToInt32(tmp, 0) + Offsets[i];
  10.             }
  11.             return address;
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement