Thread: modifying and saving global variables on a executable file using libelf !!!!

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    10

    modifying and saving global variables on a executable file using libelf !!!!

    i have a project that requires to use global varibales an array for example, append to it some items and save this array using only the executable file (im not allowed to use other files ) modification should be done on the exe file .The only indication i have is to use "libelf" i tried to look at the structure of an elf file but im still not able to access global variables(data segment) and change them.plz i need some help tx in advance.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 24
    Last Post: 09-14-2009, 03:31 PM
  2. Writing and modifying data in a file
    By Micko in forum C Programming
    Replies: 2
    Last Post: 02-17-2005, 03:42 AM