Level Goal

Good job getting a shell! Now hurry and grab the password for bandit27!

Commands you may need to solve this level

  • ls

My Answer (Step by step)

  1. 連線到伺服器並登入,登入後需要一系列的步驟才可以進入 shell,請參考 Level 25 → Level 26
ssh bandit26@bandit.labs.overthewire.org -p 2220
  1. 透過 ls 指令可以發現目錄中有一個檔案 bandit27-do,可以直接使用該檔案查看如何使用它
ls
./bandit27-do
# Run a command as another user.
#   Example: ./bandit27-do id

根據程式結果說明,我們可以透過該檔案以使用者 bandit27 來執行指令

  1. 透過 bandit27-do 檔案使用 cat 指令來呈現 Level 27 密碼!
./bandit27-do cat /etc/bandit_pass/bandit27