發表文章

目前顯示的是 6月, 2023的文章

OverTheWire Bandit Level 11 to Level 15

圖片
 OverTheWire Bandit Level 11 to Level 15 Level 11 --> Level 12 : The password for the next level is stored in the file  data.txt , where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions 下一級的密碼存儲在文件 data.txt 中,其中所有小寫 (a-z) 和大寫 (A-Z) 字母均已旋轉 13 個位置 向右 13 碼,A --> N、Z --> M 指令 : cat data.txt | tr '[A-Za-z]' '[N-ZA-Mn-za-n]' bandit12 密碼 : JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv Level 12 --> Level 13 The password for the next level is stored in the file  data.txt , which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!) 下一級的密碼存儲在文件 data.txt 中,該文件是經過反覆壓縮的文件的十六進制轉儲。 對於此級別,在 /tmp 下創建一個目錄可能會很有用,您可以在其中使用 mkdir 進行工作。 例如:mkdir /tmp/myname123。 然後使用 cp 複製數據文件,並使用 mv 重命名它(閱讀手冊頁!) 登入後首先確認檔案存在 /home/bandit12 底下 創建一個 /tmp/2023...

OverTheWire Bandit Level 6 to Level 10

圖片
 OverTheWire Bandit Level 6 to Level 10 Level 6 --> Level 7 : The password for the next level is stored  somewhere on the server  and has all of the following properties: owned by user bandit7 owned by group bandit6 33 bytes in size 下一級的密碼存儲在服務器上的某個位置,並具有以下所有屬性: 由用戶 bandit7 所有 由群組 bandit6 所有 大小為 33 bytes 因為不知道檔案在哪個路徑,所以先將路徑切換到跟目錄 / 執行 find 搜尋檔案 -type f : 搜尋目標是一個檔案 -user bandit7 : owned by user bandit7 -group bandit6 : owned by group bandit6 -size 33c : 檔案大小指定為 33 bytes 2>/dev/null : 將 permission deny 的直接輸入到黑洞 指令 : find -type f -user bandit7 -group bandit6 -size 33c 2>/dev/null 不切換到跟目錄的話可以這樣下 指令 : find / -type f -user bandit7 -group bandit6 -size 33c 2>/dev/null 搜尋到檔案 : ./var/lib/dpkg/info/bandit7.password 直接 cat 後得到答案 bandit7 密碼 : z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S Level 7 --> Level 8 : The password for the next level is stored in the file  data.txt  next to the word  millionth 下一級的密碼存儲在文件 data.txt 中,且在單詞 "millionth" 旁邊 登入後 ...

OverTheWire Bandit Level 0 to Level 5

圖片
OverTheWire Bandit Level 0 to Level 5  網站 :  https://overthewire.org/wargames/bandit/ Level 0 :  The goal of this level is for you to log into the game using SSH. The host to which you need to connect is  bandit.labs.overthewire.org , on port 2220. The username is  bandit0  and the password is  bandit0 . Once logged in, go to the  Level 1  page to find out how to beat Level 1. 此級別的目標是讓您使用 SSH 登錄遊戲。 您需要連接的主機是 bandit.labs.overthewire.org,端口 2220。用戶名是 bandit0,密碼是 bandit0。 登錄後,轉到第 1 級頁面,了解如何通過第 1 級。 Level 0 很簡單只是要你依據左上角的資訊登入主機 主機 : bandit.labs.overthewire.org 帳號 : bandit0 密碼 : bandit0 Level 0 --> Level 1 : The password for the next level is stored in a file called  readme  located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game. 下一級的密碼存儲在主目錄中名為 readme 的文件中。 使用此密碼通過 SSH 登錄 bandit1。 每當您找到某個關卡的密碼時,請使用 SSH...