I want to overwrite bytes in an exe.
So I need to generate a random string, convert it, and then write it to the exe.
I need to overwrite the 4 hex strings you see there in this format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12) the dashes are needed so that also was a problem for me.
this is the location of the first string.


I absolutely got no idea how to start this, how I can overwrite these 4 strings, in the correct format with random strings (hex, so the random can only be 0123456789abcdef)
any help is much appreciated.
The string you want to overwrite is a GUID. You can use the
Guidclass to generate a new one (see the MSDN Documentation)As for writing to the file, use the
BinaryWriterclass.ideone sample