I want to create a wrapper around another executable (ie - I have an executable that prints hello World, but I want the user to enter a password before the hello world executable is run). I don't want to edit the original executable's source. I also want to encrypt the original executable (hello world in this example) and do not want to write it to the drive (mem only).
To be written in C/C++/ObjC for Unix. Would love any tips and/or pointers to opensource project which does something like this :)
I have a handle on reading in and encrypting/decrypting the binary executable (easy obviously). What I'm not exactly clear on is how to get a function pointer to main in the second executable and to call it.
Thanks in advance for your pointers!