LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Extracting ASCII strings from a Binary files (https://www.linuxquestions.org/questions/linux-newbie-8/extracting-ascii-strings-from-a-binary-files-680214/)

poorrej 10-31-2008 03:19 AM

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

Disillusionist 10-31-2008 03:28 AM

Have you tried readelf

Code:

readelf -a {file}|less

colucix 10-31-2008 03:38 AM

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.


All times are GMT -5. The time now is 12:52 PM.