I want to create a c++ program in which
-
I can read an external file (that can be exe,dll,apk…etc…etc). That is read the file convert them into bytes and store them in an array
-
Next,I want to compile the bytes inside the array
Now this is the tricky part i want to compile the bytes into an array just to check that if the bytes are working well - You may say i am converting a file into bytes and then converting those bytes back to the same file….(Yes indeed i am doing so)
Is this possible?
To test whether an executable can be loaded (not quite the same as execution):
Note that on UNIX, the same can be achieved using
dlopen.
See also