Sponsored Content
Top Forums UNIX for Advanced & Expert Users How can i read a non text file in unix - ELF-64 executable object file - IA64 Post 302128020 by agcodba on Friday 20th of July 2007 05:05:22 PM
Old 07-20-2007
If you are looking to reverse-engineer an executable and get the source code, I can't help. However, if you want to see some of the text embedded in an executable file:

strings myExecFile | more
 

9 More Discussions You Might Find Interesting

1. Programming

dbx error ("Executable contains object file compiled on ...")

Hi, We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them: Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies

2. UNIX for Dummies Questions & Answers

How to convert Unix executable file to Tiff

Hi, I know nothing about Unix. Recently received image files from a client. Mac sees it as a Unix executable file. How do I convert these files to Tiff? Thanks for helping. (1 Reply)
Discussion started by: Pet Teoh
1 Replies

3. Shell Programming and Scripting

unix executable file

Hi - How can I find out under sh whitch file is an unix executable file? Need it for an software inventory. Thanks in advance. Regards - Lazybaer (6 Replies)
Discussion started by: lazybaer
6 Replies

4. Shell Programming and Scripting

Write an executable file in Unix

Hi, I want to write an executable file in unix env to go to a particular path instead of always typing the long path cd /app/oracle/product/10.2.0/Db_1/scripts/prejib/sample. I have tried with the below script in but not working . please help me bash-3.00$ cat a.sh #!/bin/sh ... (3 Replies)
Discussion started by: prejib
3 Replies

5. Shell Programming and Scripting

Parsing text file and feeding it into an executable

Hello, everyone. I am working wtihin AIX 5.3, and I need to do the following: read the each line of file BASE.txt do XK {line contents} if XK's output begins with "BASE", then append line contents to file "output.txt" continue until end of file Here is what I tried(unsuccessfuly): ... (4 Replies)
Discussion started by: Mordaris
4 Replies

6. Shell Programming and Scripting

Read in search strings from text file, search for string in second text file and output to CSV

Hi guys, I have a text file named file1.txt that is formatted like this: 001 , ID , 20000 002 , Name , Brandon 003 , Phone_Number , 616-234-1999 004 , SSNumber , 234-23-234 005 , Model , Toyota 007 , Engine ,V8 008 , GPS , OFF and I have file2.txt formatted like this: ... (2 Replies)
Discussion started by: An0mander
2 Replies

7. Shell Programming and Scripting

Read csv file, convert the data and make one text file in UNIX shell scripting

I have input data looks like this which is a part of a csv file 7,1265,76548,"0102:04" 8,1266,76545,"0112:04" I need to make the output data should look like this and the output data will be part of text file: 7|1265000 |7654899 |A| 8|12660000 |76545999 |B| The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies

8. Shell Programming and Scripting

Inputs required in decoding file on AIX- executable (RISC System/6000) or object module not stripped

Hi, We are in the process of migrating from AIX to Linux. There is a script of type "executable (RISC System/6000) or object module not stripped" on AIX and we are unable to read the contents of it. Is there a way to read the contents of the file on AIX, so that we can rewrite the code in... (3 Replies)
Discussion started by: venkatesh17
3 Replies

9. Shell Programming and Scripting

Shell script UNIX to read text file line by line

i have a text file as belows, it includes 2 columns, 1st is the column name, 2nd is the file_name data_file.txt column_name file_name col1 file1 col2 file2 col3 file1 col4 file1 col5 file2 now, i would like to... (4 Replies)
Discussion started by: tester111
4 Replies
GELF_GETPHDR(3) 					   BSD Library Functions Manual 					   GELF_GETPHDR(3)

NAME
elf32_getphdr, elf64_getphdr, gelf_getphdr -- retrieve an ELF program header table LIBRARY
ELF Access Library (libelf, -lelf) SYNOPSIS
#include <libelf.h> Elf32_Phdr * elf32_getphdr(Elf *elf); Elf64_Phdr * elf64_getphdr(Elf *elf); #include <gelf.h> GElf_Phdr * gelf_getphdr(Elf *elf, int index, GElf_Phdr *dst); DESCRIPTION
These functions retrieve and translate ELF program header information from an ELF descriptor, if this information exists. Functions elf32_getphdr() and elf64_getphdr() return a pointer to an array of translated Elf32_Phdr and Elf64_Phdr descriptors respectively. These descriptors are described in elf(5). The number of entries in this array may be determined using the elf_getphnum(3) function. Function gelf_getphdr() will retrieve the program header table entry at index index from ELF descriptor elf. The translated program header table entry will be written to the address pointed to be argument dst. Applications may inform the library of modifications to a program header table entry by using the elf_flagphdr(3) API. Applications using the gelf(3) interface need to use the gelf_update_phdr(3) API to copy modifications to a program header entry back to the underlying ELF descriptor. RETURN VALUES
The functions a valid pointer if successful, or NULL in case an error was encountered. ERRORS
These functions may fail with the following errors: [ELF_E_ARGUMENT] Argument elf was NULL. [ELF_E_ARGUMENT] Argument elf was not a descriptor for an ELF object. [ELF_E_ARGUMENT] Argument dst was NULL. [ELF_E_ARGUMENT] Index index was out of range. [ELF_E_CLASS] The class of ELF descriptor elf did not match the expected class of the function being called. [ELF_E_HEADER] ELF descriptor elf did not possess an executable header. [ELF_E_HEADER] ELF descriptor elf had a corrupt executable header. [ELF_E_RESOURCE] An out of memory condition was detected. [ELF_E_SECTION] The ELF descriptor in argument elf did not adhere to the conventions used for extended numbering. [ELF_VERSION] ELF descriptor elf was of an unsupported version. SEE ALSO
elf(3), elf32_getehdr(3), elf32_newphdr(3), elf64_getehdr(3), elf64_newphdr(3), elf_flagphdr(3), elf_getphnum(3), gelf(3), gelf_getehdr(3), gelf_newphdr(3), gelf_update_phdr(3), elf(5) BSD
October 21, 2007 BSD
All times are GMT -4. The time now is 09:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy