mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3
145 字
1 分鐘
[OverTheWire] Bandit Level 32 → Level 33
2025-01-25

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

如果這篇文章對你有幫助,歡迎分享給更多人!

[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

部分資訊可能已經過時

目錄