我在玩黑客战争游戏,叫做“连线”,这是:
http://overthewire.org/wargames/bandit/bandit6.html
现在我被卡住了,我不认为只通过命令完成这个部分是不可能的。如果可能的话,请告诉我。我寻找答案寻求帮助,但我还是有点迷茫。什么。/-*做什么?
即使我有答案,我拒绝继续前进,直到我完全理解它。
发布于 2016-09-28 21:12:21
基本上,您正在尝试使用file
命令来了解文件格式。
file ./-*
在这里,./-*
这个壳球将获取从-
(减号)开始的所有文件,并打印文件的文件格式。
在您的示例中,您正在运行此命令以查找人类可读的文件,以便从该文件中读取密码。您可以读取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.
https://askubuntu.com/questions/831006
复制相似问题