OverTheWire Level 6 -> Level 7解题过程

级别:Bandit Level 6 → Level 7

目标:Level Goal

The password for the next level is stored somewhere on the server and has all of the following properties:

  • owned by user bandit7
  • owned by group bandit6
  • 33 bytes in size

下一级的密码保存在目标服务器的某个地方,并且有3个属性。

允许命令:Commands you may need to solve this level

ls, cd, cat, file, du, find, grep

解题过程:

这里关键是题目提示并没有指出具体在什么目录,因此需要在根目录下查找该文件:

bandit6@bandit:~$ find / -user  bandit7 -group bandit6 -size 33c 2> /dev/null
/var/lib/dpkg/info/bandit7.password
bandit6@bandit:~$ cat /var/lib/dpkg/info/bandit7.password
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

 

 

 

posted @ 2022-06-05 12:46  Jason_huawen  阅读(90)  评论(0编辑  收藏  举报