(1)
Code Part
private readonly string filePath =
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "AIMBOT DATA.txt");
private readonly string logFilePath =
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "AIMBOT DATA .txt");
private Thread monitorThread;
private bool isMonitoring = true;
private static FAHIM PLAYBOX = new FAHIM();
private string aimAOB = "Aimbot Cod Here";
private string readFORhead = "0x00";
private string write = "0x00";
private Dictionary<long, int> originalvalues = new Dictionary<long, int>();
private Dictionary<long, int> originallvalues = new Dictionary<long, int>();
private Dictionary<long, int> originalvalues2 = new Dictionary<long, int>();
private Dictionary<long, int> originallvalues2 = new Dictionary<long, int>();
(2)
button Part
originalvalues.Clear();
originallvalues.Clear();
originalvalues2.Clear();
originallvalues2.Clear();
Sta1.Text = "Applying...";
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
Int64 readOffset = Convert.ToInt64(readFORhead, 16);
Int64 writeOffset = Convert.ToInt64(write, 16);
Int32 proc = Process.GetProcessesByName("HD-Player")[0].Id;
PLAYBOX.OpenProcess(proc);
var result = await PLAYBOX.AoBScan2(aimAOB, true, true);
List<long> resultList = result.ToList();
using (StreamWriter writer = new StreamWriter(logFilePath, false))
{
writer.WriteLine($"Total Patterns Found: {resultList.Count}");
writer.WriteLine("=========================================");
if (resultList.Count != 0)
{
foreach (var CurrentAddress in resultList)
{
writer.WriteLine($"=========================================");
writer.WriteLine($"Pattern Found at Address: 0x{CurrentAddress:X}");
writer.WriteLine("=========================================");
writer.WriteLine($"Full Array of Bytes:");
writer.WriteLine(aimAOB);
writer.WriteLine();
writer.WriteLine("Replacements:");
Int64 AddressToSave = CurrentAddress + writeOffset;
var currentBytes = PLAYBOX.readMemory(AddressToSave.ToString("X"),
sizeof(int));
int currentValue = BitConverter.ToInt32(currentBytes, 0);
originalvalues[AddressToSave] = currentValue;
Int64 addressToSave9 = CurrentAddress + readOffset;
var currentBytes9 = PLAYBOX.readMemory(addressToSave9.ToString("X"),
sizeof(int));
int currentValue9 = BitConverter.ToInt32(currentBytes9, 0);
originallvalues[addressToSave9] = currentValue9;
writer.WriteLine($" Address: 0x{AddressToSave:X}");
writer.WriteLine($" Original Value (Dec): {currentValue}");
writer.WriteLine($" Original Value (Hex): 0x{currentValue:X}");
writer.WriteLine($" Replaced Value (Dec): {currentValue9}");
writer.WriteLine($" Replaced Value (Hex): 0x{currentValue9:X}");
writer.WriteLine();
PLAYBOX.WriteMemory(addressToSave9.ToString("X"), "int",
currentValue.ToString());
PLAYBOX.WriteMemory(AddressToSave.ToString("X"), "int",
currentValue9.ToString());
writer.WriteLine($" Address: 0x{addressToSave9:X}");
writer.WriteLine($" Original Value (Dec): {currentValue9}");
writer.WriteLine($" Original Value (Hex): 0x{currentValue9:X}");
writer.WriteLine($" Replaced Value (Dec): {currentValue}");
writer.WriteLine($" Replaced Value (Hex): 0x{currentValue:X}");
writer.WriteLine();
}
}
else
{
writer.WriteLine("No patterns found.");
}
stopwatch.Stop();
double elapsedSeconds = stopwatch.Elapsed.TotalSeconds;
Console.Beep();
Sta1.Text = $"Successful, Time: {elapsedSeconds:F2} Seconds;";
}