Esempio n. 1
0
        public override void setBackupBytes(Process process, ulong address, byte[] bytesToWrite)
        {
            IntPtr bytesRead = IntPtr.Zero;

            backupBytes = new byte[bytesToWrite.Length];
            MemoryScanner.ReadProcessMemory(process.Handle, (IntPtr)address, backupBytes, bytesToWrite.Length, out bytesRead);
        }
Esempio n. 2
0
        public override ulong FindPattern()
        {
            IntPtr bytesRead;

            byte[] localModulebytes   = new byte[localModule.ModuleMemorySize];
            byte[] convertedByteArray = ConvertPattern(lpattern);
            MemoryScanner.ReadProcessMemory(handleProcess, localModule.BaseAddress, localModulebytes, localModule.ModuleMemorySize, out bytesRead);
            return(scanLogic(localModulebytes, convertedByteArray));
        }