Self modifying code
Hello, I'm trying to embedd some information at the end of an executable. The program is, in *NIX it appears that a program cannot open itself for modification. Right now I'm just doing fopen. Is this worth looking into more? I'm thinking there has to be some way to edit the program, but I am not sure where to really start looking.
Any suggestions would be appreciated.
Well the idea is to have a self contained executable that has dynamic data in it of variable length. I think if the data is appended to the executable, it will not mess it up. In the current situation writing to another file isn't really a viable option. I understand that this is tricky business, and right now I'm looking to try a more of proof-of-concept so I can see if it will do what needs to be done. Thanks.