Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the strings command of linux to find printable strings in object files or binaries

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report