0% found this document useful (0 votes)
9 views

message-2

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

message-2

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

if (guna2ToggleSwitch1.

Checked == true)
{
originallvalues.Clear();
originalValues.Clear();
originalValues2.Clear();
originallValues2.Clear();
status.Text = "APPLYING...";
status.ForeColor = Color.Yellow;
// Initialize and start the stopwatch
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;

Abnormal.OpenProcess(proc);

var result = await Abnormal.AoBScan2(aimAOB, true, true);


if (result.Count() != 0)
{
foreach (var CurrentAddress in result)
{
// Perform memory read/write operations
Int64 addressToSave = CurrentAddress + writeOffset;
var currentBytes = Abnormal.readMemory(addressToSave.ToString("X"),
sizeof(int));
int currentValue = BitConverter.ToInt32(currentBytes, 0);
originalValues[addressToSave] = currentValue;

Int64 addressToSave9 = CurrentAddress + readOffset;


var currentBytes9 =
Abnormal.readMemory(addressToSave9.ToString("X"), sizeof(int));
int currentValue9 = BitConverter.ToInt32(currentBytes9, 0);

// Swap head and chest values


Int64 headBytes = CurrentAddress + readOffset;
Int64 chestBytes = CurrentAddress + writeOffset;

var bytes = Abnormal.readMemory(headBytes.ToString("X"),


sizeof(int));
int Read = BitConverter.ToInt32(bytes, 0);

var bytes2 = Abnormal.readMemory(chestBytes.ToString("X"),


sizeof(int));
int Read2 = BitConverter.ToInt32(bytes2, 0);

Abnormal.WriteMemory(chestBytes.ToString("X"), "int",
Read.ToString());
Abnormal.WriteMemory(headBytes.ToString("X"), "int",
Read2.ToString());

Int64 addressToSave1 = CurrentAddress + writeOffset;


var currentBytes1 =
Abnormal.readMemory(addressToSave1.ToString("X"), sizeof(int));
int currentValue1 = BitConverter.ToInt32(currentBytes1, 0);
originalValues2[addressToSave1] = currentValue1;
Int64 addressToSave19 = CurrentAddress + readOffset;
var currentBytes19 =
Abnormal.readMemory(addressToSave19.ToString("X"), sizeof(int));
int currentValue19 = BitConverter.ToInt32(currentBytes19, 0);
originallValues2[addressToSave19] = currentValue19;
}

// Stop the stopwatch


stopwatch.Stop();

// Display the elapsed time


double elapsedSeconds = stopwatch.Elapsed.TotalSeconds;
Console.Beep(2000, 600);
status.Text = $"aimbot applied! Time: {elapsedSeconds:F2} seconds";

status.ForeColor = Color.Green;
}
else
{
// Handle error case
stopwatch.Stop(); // Ensure stopwatch stops even in error cases
Console.Beep(2000, 400);
status.Text = "ERROR: No results found.";

status.ForeColor = Color.Red;
}
}
}

You might also like