0 command-line helpfile hacking
我正在做一个名为 Over The Wire 的黑客战争游戏,它是:
http://overthewire.org/wargames/bandit/bandit6.html
现在我被卡住了,我认为仅使用他们给出的命令是不可能完成该部分的。如果可能,请告诉我。我查找了寻求帮助的答案,但我仍然有点迷茫。./-* 有什么作用?
即使我在那里有答案,我也拒绝继续前进,直到我完全理解它。
基本上,您正在尝试使用file命令了解文件格式。
file ./-*
Run Code Online (Sandbox Code Playgroud)
在这里,./-*这个shell glob将选取从-(减号)开始的所有文件,并打印文件的文件格式。
在您的情况下,您正在运行此命令以查找人类可读的文件,以便您可以从中读取密码。您可以读取 ASCII 文本文件内容。
更多关于file命令:
NAME
file — determine file type
SYNOPSIS
file [-bcEhiklLNnprsvzZ0] [--apple] [--extension] [--mime-encoding]
[--mime-type] [-e testname] [-F separator] [-f namefile]
[-m magicfiles] [-P name=value] file ...
file -C [-m magicfiles]
file [--help]
DESCRIPTION
This manual page documents version 5.25 of the file command.
file tests each argument in an attempt to classify it. There are three
sets of tests, performed in this order: filesystem tests, magic tests,
and language tests. The first test that succeeds causes the file type to
be printed.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2133 次 |
| 最近记录: |