LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-31-2008, 03:19 AM   #1
poorrej
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Extracting ASCII strings from a Binary files


Hi All,

Is there any alternative utility/command other then "strings" utility,
To extract ascii strings from a binary files.

I know using strings we can extract ascii string from a binary file. I am
working on Xen Server, and "string" utility was not present on this. Iam
looking for any other alternative commnad/utility to extract strings.

Please share your Ideas with me.

Thanks
Poorrej
 
Old 10-31-2008, 03:28 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Have you tried readelf

Code:
readelf -a {file}|less
 
Old 10-31-2008, 03:38 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
You can try to compile the binutils source code (which provides the strings utility) by yourself. If you don't have root privileges you can always install it in your home directory (or just compile without actually installing), then simply copy the strings executable somewhere in your path (e.g. $HOME/bin) and delete the rest. However I suggest to compile an older version of binutils, which is lighter than the latest one. For the purpose of installing a single utility like strings, an older version should be fine.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting a specific line from an ASCII file heyyou Programming 7 03-21-2005 04:19 PM
ASCII vs Binary the_imax General 4 12-25-2004 10:35 AM
can fedora handle ascii strings for wep keys? ehawk Linux - Wireless Networking 1 10-13-2004 06:34 PM
Binary to Hex Ascii converter carboncopy Slackware 1 05-28-2004 09:09 AM
Converting ASCII to Binary? Darx Linux - Software 0 04-08-2004 10:43 AM


All times are GMT -5. The time now is 01:36 PM.

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