Thread: Self modifying code

  1. #1
    Registered User
    Join Date
    Nov 2002

    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.

  2. #2
    Registered User
    Join Date
    Nov 2002
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM