156 字
1 分鐘
[OverTheWire] Bandit Level 26 → Level 27
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)
- 連線到伺服器並登入,登入後需要一系列的步驟才可以進入 shell,請參考 [Level 25 → Level 26]({{< ref “/posts/2025-01-24-post144357.md” >}})
ssh bandit26@bandit.labs.overthewire.org -p 2220- 透過 ls 指令可以發現目錄中有一個檔案 bandit27-do,可以直接使用該檔案查看如何使用它
ls./bandit27-do# Run a command as another user.# Example: ./bandit27-do id{{< alert info >}} 根據程式結果說明,我們可以透過該檔案以使用者 bandit27 來執行指令 {{< /alert >}}
- 透過 bandit27-do 檔案使用 cat 指令來呈現 Level 27 密碼!
./bandit27-do cat /etc/bandit_pass/bandit27 分享
如果這篇文章對你有幫助,歡迎分享給更多人!
[OverTheWire] Bandit Level 26 → Level 27
https://m21248074.github.io/blog/posts/2025-01-24-post154555/ 部分資訊可能已經過時
相關文章 智能推薦


