152 字
1 分鐘
[OverTheWire] Bandit Level 32 → Level 33

Level Goal#

After all this git stuff, it’s time for another escape. Good luck!

Commands you may need to solve this level#

  • sh
  • man

My Answer (Step by step)#

  1. 連線到伺服器並登入
Terminal window
ssh bandit32@bandit.labs.overthewire.org -p 2220
  1. 登入後發現輸入的內容都被轉為大寫,並且提示沒有權限使用指令
Terminal window
# WELCOME TO THE UPPERCASE SHELL
ls
# sh: 1: LS: Permission denied
  1. UPPERCASE SHELL 並沒有處理數字與特殊符號,所以我們可以透過 $0 取得 shell 的名稱,進而離開 UPPERCASE SHELL
Terminal window
$0
  1. 透過 whoami 指令查看 shell 是以哪個使用者執行,發現為 bandit33
Terminal window
whoami
  1. 故我們可以透過 cat 指令直接取得 Level 33 密碼!
Terminal window
cat /etc/bandit_pass/bandit33

第 33 篇,共 34 篇本文屬於系列

[OverTheWire] Bandit Level 32 → Level 33
https://m21248074.github.io/blog/posts/2025-01-25-post100824/
作者
Cavey (凱維)
發佈於
2025-01-25
許可協議
CC BY-NC-SA 4.0

分享文章

生成精美分享圖或複製連結,與更多人分享本文。

繼續閱讀

沿著主題讀

基於共同的標籤與分類

換條路線

從其他文章中穩定抽取

最後更新於 ,距今已過 630 天

部分內容可能已過時