linux - 有没有一种工具可以从任何类型的文件中提取所有字符串?

标签 linux string passwords extract

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

谢谢 =)

最佳答案

字符串

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

编辑 自 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,以改变它的行为。

关于linux - 有没有一种工具可以从任何类型的文件中提取所有字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3277143/

相关文章:

php - "failed to open stream: Permission denied"777 后我的整个应用

Java被连续字符分割

c# - String.Format 计算预期参数的数量

linux - cron.daily 脚本

linux - Windows 10 上的 Bash linux (WSL) - 当我在其中移动某些内容时,终端/控制台不刷新文件夹/文件

php - 无法定位包 php5-curl

C++使用终止符的位置作为交换空间来反转空终止字符串

ios - 阻止 UITextField 安全文本清除现有文本

ruby-on-rails - "Please confirm which user you are changing the password for"

passwords - 是否可以在不创建新数据库连接的情况下对 Sqlanywhere 系统用户进行身份验证?