Ejemplo n.º 1
0
 private void materialRaisedButton3_Click(object sender, EventArgs e)
 {
     if (!readyToScan.Checked)
     {
         return;
     }
     RPM.OpenProcess(targetproc.Id);
     isscanning = true;
 }
Ejemplo n.º 2
0
        private static Int64 FindOffset(byte[] pattern, string mask)
        {
            Int64 Match  = FindPattern(0, false, pattern, mask);
            Int64 Offset = Match + 3;

            byte first = RPM.ReadByte(Offset + 4);

            Int32 Offset2 = RPM.ReadInt32(Offset);

            return(Offset + Offset2 + 4);
        }
Ejemplo n.º 3
0
        private void materialRaisedButton3_Click(object sender, EventArgs e)
        {
            if (!readyToScan.Checked)
            {
                return;
            }
            RPM.OpenProcess(targetproc.Id);
            foreach (Signature sig in Signature.list)
            {
                sig.address = 0;
            }


            isscanning = true;
        }
Ejemplo n.º 4
0
        private static Int64 FindPattern(Int64 offsetFromBase, bool deref, byte[] byteMask, string szMask)
        {
            IntPtr ByteRead;

            Managed.ReadProcessMemory(RPM.GetHandle(), baseAddress, buffer, (UInt64)searchLength, out ByteRead);

            for (Int64 i = 0; i < searchLength; i++)
            {
                if (DataCompare(i, byteMask, szMask))
                {
                    return(baseAddress + i + 1 + offsetFromBase);
                }
            }

            return(0);
        }