Don't ask lol, it's a long story. I should make a program do that for me, that would be a challenge. Plus, I'd have to figure out how many bytes it is exactly. But I rather find a way to do something like this[c#]:
Code:
public static byte[] hexToBytes(string hexString)
{
if (hexString.StartsWith("0x"))
hexString = hexString.Substring(2);
hexString = System.Text.RegularExpressions.Regex.Replace(hexString, "[^a-fA-F0-9]", "");
if (hexString.Length % 2 != 0)
hexString = hexString.Substring(0, hexString.Length - 1);
int length = hexString.Length / 2;
byte[] buf = new byte[length];
for (int i = 0; i < length; i++)
buf[i] = byte.Parse(hexString.Substring(i * 2, 2), System.Globalization.NumberStyles.HexNumber);
return buf;
}
Code:
if (!injected)
{
injected = true;
memHandler.WriteProcessMemory(0x40034C, hexToBytes("A344034000A14803400089900006400083F850740583C004EB05B800000000A348034000A144034000891A8942046A0051897208E97FDF1500"));
memHandler.WriteProcessMemory(0x55E2F9, hexToBytes("E94E20EAFF909090909090"));
}
How would I do something similar in C++