Bandit Level 3 → Level 4

The password for the next level is stored in a hidden file in the inhere directory.

解密

  1. ssh -p 2220 bandit3@bandit.labs.overthewire.org 密码 UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
  2. cd ./inhere/ 进入题中说的目录
  3. ls -a 查看当前的隐藏文件,发现.hidden
  4. cat .hidden 得到密码 pIwrPrtPN36QITSp3EQaw936yaFoFgAB

知识点

考察了ls命令的-a参数,用户查看包含隐藏文件的所有当前目录内容

Bandit Level 2 → Level 3

The password for the next level is stored in a file called spaces in this filename located in the home directory

解密

  1. ssh -p 2220 bandit2@bandit.labs.overthewire.org 密码 CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
  2. cat spaces\ in\ this\ filename 得到 UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

知识点

这里考察了对于不可见字符的转义,如本次的space空格符,使用\来转义

Bandit Level 1 → Level 2

The password for the next level is stored in a file called – located in the home directory

解密

  1. ssh -p 2220 bandit1@bandit.labs.overthewire.org 输入密码 boJ9jbbUNNfktd78OOpsqOltutMc3MY1
  2. cat ./- 得到 CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

知识点

主要考察了-符号是linux许多命令中代表“从标准输入读取”。

Bandit Level 0 → Level 1

The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.

解密

  1. ssh -p 2220 bandit0@bandit.labs.overthewire.org,密码bandit0,登陆
  2. cat ~/readme 得到下一关密码 boJ9jbbUNNfktd78OOpsqOltutMc3MY1

知识点

主要让我们使用了cat命令,查看文件内容。

Bandit Level 0

The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.

解密

本题主要是告诉我如何使用ssh登陆bandit游戏服务器

ssh -p 2220 bandit0@bandit.labs.overthewire.org

密码:bandit0

知识点

  1. ssh工具的基本使用
  2. -p参数使用其他端口