146 字
1 分鐘
[OverTheWire] Bandit Level 27 → Level 28
Level Goal
There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo via the port 2220. The password for the user bandit27-git is the same as for the user bandit27.
Clone the repository and find the password for the next level.
Commands you may need to solve this level
- git
My Answer (Step by step)
- 連線到伺服器並登入
ssh bandit27@bandit.labs.overthewire.org -p 2220- 透過 mktemp 指令產生暫存資料夾,並透過 cd 指令進入它,以便稍後 clone git repo
mktemp -dcd /tmp/tmp.dN2OW0Zbrc- 透過 git 指令將 repo clone 下來
git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo- 透過 cd 指令進入 repo 資料夾,並透過 ls 指令查看資料夾內容
cd repols# README- 透過 cat 指令讀取 README 檔案,即可獲得 Level 28 密碼!
cat README 分享
如果這篇文章對你有幫助,歡迎分享給更多人!
[OverTheWire] Bandit Level 27 → Level 28
https://m21248074.github.io/blog/posts/2025-01-24-post155609/ 部分資訊可能已經過時
相關文章 智能推薦
隨機文章 隨機推薦
1
[OverTheWire] Bandit Level 24 → Level 25
資安筆記 2025-01-24
2
[OverTheWire] Bandit Level 9 → Level 10
資安筆記 2025-01-23
3
[OverTheWire] Bandit Level 32 → Level 33
資安筆記 2025-01-25
4
[OverTheWire] Bandit Level 23 → Level 24
資安筆記 2025-01-24
5
[OverTheWire] Bandit Level 0 & Level 0 → Level 1
資安筆記 2025-01-22


