【问题标题】:is there a tool that can extract all strings from any type of file?有没有可以从任何类型的文件中提取所有字符串的工具?
【发布时间】:2011-03-17 16:03:57
【问题描述】:

我正在寻找wyd 0.2 的替代品,它可以从它遇到的任何类型的文件中提取字符串。

谢谢 =)

【问题讨论】:

  • 您为什么需要它,为什么wyd 不适合您?如果您提供此信息,人们可以更好地帮助您。
  • wyd 删除了我想保留的某些字符,例如“:”。我曾尝试编辑代码,但这样做没有运气。
  • 哦哇 nvm。我没有意识到字符串已经内置在 linux 中:D

标签: linux string passwords extract


【解决方案1】:

strings

/*填充因为我需要 15 个字符*/

edit 自 80 年代后期以来,每个 *nix 中都有一个名为 strings 的程序,它就是这样做的。您可以登录任何 *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,以改变其行为。

【讨论】:

  • 需要 15 个字符是有原因的。
  • @zvonimir @MKv4:应该这样做;-)
  • 好的,如果您需要更多关于如何使用strings 的信息,请给我留言。
猜你喜欢
  • 1970-01-01
  • 2011-12-07
  • 1970-01-01
  • 2022-01-17
  • 1970-01-01
  • 2021-02-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多