LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-29-2005, 01:11 PM   #1
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Rep: Reputation: 15
Question 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.
 
Old 12-30-2005, 08:51 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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)
 
Old 12-30-2005, 12:36 PM   #3
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
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?
 
Old 12-30-2005, 12:52 PM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ELF 32-bit LSB executable how to run vinsky2002 Linux - Software 1 01-12-2005 02:07 AM
Utility to get ELF file information praj_linux Linux - Software 0 01-04-2005 07:30 AM
ELF file OS ABI invalid man26 Linux - General 0 07-29-2004 05:54 AM
ELF file version does not not match current one kakultech Linux - Software 1 10-06-2003 07:24 PM
iptables depmod not an elf file? ForumKid Linux - General 1 09-27-2003 06:39 AM


All times are GMT -5. The time now is 12:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration