LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Accessing ELF of the executable file ? (https://www.linuxquestions.org/questions/programming-9/accessing-elf-of-the-executable-file-397634/)

vishalbutte 12-29-2005 01:11 PM

Accessing ELF of the executable file ?
 
hi guys
this is vishal.
i am using linux kernel 2.6.10 on FEDORA CORE 3.To
check the integriety of the executables i
want to keep the hash of the executables. Now
insted of using entire contents of the executables
i am trying to calculate the hash of elf of
the executable.
So plz anyone can tell me how i can access elf of
executable?

Again what i am doing is possible only with hash of
elf? Or am i on wrong track?

Your sols. r always welcome.

Hko 12-30-2005 08:51 AM

Maybe these links help:
http://elfsh.segfault.net/
http://directory.fsf.org/libs/misc/libelf.html

(both are available in debian, don't know for other distro's)

vishalbutte 12-30-2005 12:36 PM

Thanks HKo

i have gone through the sites u mentioned.
Is there any utility tool to access the elf information?
and I am still confused .. what will i need from eldf headers to calculate hash of the executables to ensure the integriety of the executables?

Hko 12-30-2005 12:52 PM

Quote:

Originally Posted by vishalbutte
i have gone through the sites u mentioned.
Is there any utility tool to access the elf information?

That would be the first link I guess.


All times are GMT -5. The time now is 04:20 PM.