Random name everytime program is run.

Posts 16 of 6 · Page 1 of 1
Random name everytime program is run.
Title says it all. Anyone has ideas on how to do this?
Alike most cheat providing companies have their loaders, it generates a different binary name every time time program is ran.
I'm working on a project of mine and I'm thinking this would be a good addition.
If you don't understand what i mean, here are some pictures:
 
Click
RUN 1:

RUN 2:

RUN 3:

etc.
I think you got the idea by now.
Look into using Mono.Cecil to do edits to your hack before it is fully loaded. You could create a loader to load your actual hack, alter it with Mono.Cecil, then fully load it after it has been edited to your liking. This also prevents your hack from having to be modified on disk leaving the original binary untouched.
If all you want to do is change the name, using a GUID as a random name might work.
Code:
public static void RandomRun(string FileName)
        {
            Byte[] FileContents = System****.File.ReadAllBytes(System****.Path.GetFullPath(FileName));
            string NewName = Guid.NewGuid().ToString() + ".exe";
            System****.File.WriteAllBytes(NewName, FileContents);
            System.Diagnostics.Process.Start(NewName);
        }
I think hes looking to change the actual internal function names and stuff. Not just the exe name itself.
My bad, by binary name I thought he meant the executable file. >.<
Hmm had a idea but I don't want to bother you with it atm.
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?