Ejemplo n.º 1
0
        public async Task CheatMoneyPtr()
        {
            AoBScan[5] = 0; CodeCave[4] = 0;

            AoBScan[5] = (await LibMem.AoBScan(minRange, maxRange, MoneyPtr, false, false, true)).FirstOrDefault();

            //MessageBox.Show(AoBScan[4].ToString("X"));

            if (AoBScan[5] > 0)
            {
                byte[] asm = { 0x56, 0x48, 0x8D, 0x70, 0x20, 0x48, 0x89, 0x35, 0x1B, 0x00, 0x00, 0x00, 0x48, 0x8D, 0xB6, 0xA1, 0xFC, 0xFF, 0xFF, 0x48, 0x89, 0x35, 0x15, 0x00, 0x00, 0x00, 0x5E, 0x48, 0x89, 0x78, 0x20, 0x4C, 0x8B, 0xF1 };

                CodeCave[4] = (long)LibMem.CreateCodeCave(AoBScan[5].ToString("X"), asm, 7);
            }
            else
            {
                MessageBox.Show("Address not found!\nPlease try again to Activate Cheat or try to restart the game and trainer.\n\nIf this error still occur, please (Press Ctrl+C) to copy, and contact me at fearlessrevolution.com.\n\n" + "Process ID: " + pID + "\nProcess Name: " + ProcName + "\nSearch Range: " + minRange.ToString("X") + " - " + maxRange.ToString("X") + "\nSignature: " + MoneyPtr + "\n\nTrainer Version: " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name, "Error", 0, MessageBoxIcon.Error);
            }
        }