Use the strings command of linux to find printable strings in object files or binaries
This article will explain in detail about the use of linux strings command in object files or binary files to find printable strings, Xiaobian think quite practical, so share with you as a reference, I hope you can read this article after harvest.
The strings command finds printable strings in an object file or binary file. A string is any sequence of 4 or more printable characters ending with a newline or null character. The strings command is useful for identifying random object files.
Syntax format: strings [parameters]
Common parameters:
-a scans the entire file instead of just the target file initialization and loading segments-f displays the file name before the string-t outputs the position of the character, based on octal, decimal or hexadecimal
Reference Example
List all ASCII text in ls:
[root@linuxcool ~]# strings /bin/ls
List all ASCII text in ls:
[root@linuxcool ~]# cat /bin/ls strings
Find strings containing libc in ls, case insensitive:
[root@linuxcool ~]# strings /bin/ls | grep -i libc
Show file name before string:
[root@linuxcool ~]# strings -f /bin/ls | grep libc
Position of output characters:
[root@linuxcool ~]# strings -t /bin/ls |grep libc on the use of linux strings command in object files or binary files to find printable strings to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.