Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 1.08 KB

readme.md

File metadata and controls

30 lines (22 loc) · 1.08 KB

ProcessMemory

Little shitty library i made took from (https://github.com/CSharpProgramming/ProcessMemory and updated for my needs) that can do the following: Read, Write, Query memory regions and AOB Scan Processes 64Bit and 32Bit.

Example for those who need it i guess

ProcessStream stream = new ProcessStream(Process.GetProcessesByName("NAME_OF_PROCESS").First());
//Each byte is separated by a space, and each ?? indicates an wildcard
HexPattern p = new HexPattern("?? ?? 0x32 ?? 0x43");
long address = stream.PatternScan(p);

or

HexPattern matrixPat = new HexPattern("00 0A FC 01 00 00 00 00 00 0A FB 01 00 00 00 00");
pointerMatrix = Global.stream.PatternScan(matrixPat, 0x00000000, 4096 * 3, 0x600000000);
if (pointerMatrix != -1)
{
    pointerMatrix += 0x60;
}

Changes from original lib:

  1. Fixed memory scanning (now it is not attaching to process base module)
  2. Overloaded PatternScan to make limited by ms scans.
  3. Added public Vector3 ReadVector3(long address) just add your Vector3 to namespace or add use your object.vector3 and uncomment it.