Hi everyone,
i wrote this small app and it works fine but it erases everything up to the offset and everything after it.
Anyone knows how to avoid that?
#include <iostream>
#include <fstream>
int main()
{
int hex = 0x75;
std::ofstream f("sample.exe", std::ios::binary);
f.seekp(1169, std::ios::beg);
f.write(reinterpret_cast<const char *>(&hex), 2);
f.close();
return 0;
}
regards