OverTheWire Level 4 -> Level 5解题过程
作者:互联网
级别:Bandit Level 4 → Level 5
目标:Level Goal
The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.
下一级命令保存在inhere目录中只有人类可读的文件中。
允许命令:Commands you may need to solve this level
ls, cd, cat, file, du, find
解题过程:
目标中的关键词是人类可读的文件,可以利用find命令筛选出所有的文件(-type),并用-exec选项,执行file命令,查看各个文件的信息,可以看到只有./-file07: ASCII text ,从而可得到答案
bandit4@bandit:~$ ls inhere bandit4@bandit:~$ cd inhere/ bandit4@bandit:~/inhere$ ls -alh total 48K drwxr-xr-x 2 root root 4.0K May 7 2020 . drwxr-xr-x 3 root root 4.0K May 7 2020 .. -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file00 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file01 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file02 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file03 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file04 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file05 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file06 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file07 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file08 -rw-r----- 1 bandit5 bandit4 33 May 7 2020 -file09 bandit4@bandit:~/inhere$ find . -type f -exec file {} \; ./-file01: data ./-file00: data ./-file06: data ./-file03: data ./-file05: data ./-file08: data ./-file04: data ./-file07: ASCII text ./-file02: data ./-file09: data bandit4@bandit:~/inhere$ cat ./-file007 cat: ./-file007: No such file or directory bandit4@bandit:~/inhere$ cat ./-file07 koReBOKuIDDepwhWk7jZC0RTdopnAYKh
标签:rw,Level,May,bandit4,解题,2020,-----,33,OverTheWire 来源: https://www.cnblogs.com/jason-huawen/p/16342302.html