我正在寻找一种替代 wyd 0.2 的工具,可以从任何类型的文件中提取字符串。
谢谢 =)
谢谢 =)
字符串
/*填充,因为我需要15个字符*/
编辑 每个*nix中都有一个名为strings
的程序,自20世纪80年代末以来一直存在,它就是用来做这件事的。您可以登录到任何*nix中,键入man strings
以获取更多信息。或者您可以键入strings -h
,显示类似于以下内容:
Usage: strings [option(s)] [file(s)]
Display printable strings in [file(s)] (stdin by default)
The options are:
-a - --all Scan the entire file, not just the data section
-f --print-file-name Print the name of the file before each string
-n --bytes=[number] Locate & print any NUL-terminated sequence of at
-<number> least [number] characters (default 4).
-t --radix={o,d,x} Print the location of the string in base 8, 10 or 16
-o An alias for --radix=o
-T --target=<BFDNAME> Specify the binary file format
-e --encoding={s,S,b,l,B,L} Select character size and endianness:
s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit
@<file> Read options from <file>
-h --help Display this information
-v --version Print the program's version number
这些选项可以传递给strings
,以更改其行为。