writeup/Bandit

Bandit Level 17 -> Level 19

tnvori 2025. 3. 4. 00:37

어제 미키17을 봤는데 오늘 level 17이네, 와우

 

 

Level 17 → Level 18

https://overthewire.org/wargames/bandit/bandit18.html

 

OverTheWire: Level Goal

We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal There are 2 files in the homedirectory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line t

overthewire.org

passwords.old와 passwords.new에서 단 한 줄의 차이를 찾아야 한다.

 

diff -c를 통해 두 파일 간의 차이점을 출력하도록 할 수 있다.

 

 

Level 18 → Level 19

https://overthewire.org/wargames/bandit/bandit19.html

 

OverTheWire: Level Goal

We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when yo

overthewire.org

homedirectory의 readme에 패스워드가 저장되어 있다.

.bashrc가 수정되서 ssh로 로그인을 해도 바로 로그아웃된다.

 

로그아웃 되기 전, 로그아웃 과정에서 직접 파일을 읽도록 하면 된다.

 

ssh 접속을 하면서 바로 명령어를 실행시킬 수 있다는 것을 되새김질했다. 기억해두면 쓸 데 있을 듯.

'writeup > Bandit' 카테고리의 다른 글

Bandit Level 20 -> Level 23  (0) 2025.03.13
Bandit Level 14 -> Level 17  (0) 2025.02.27
Bandit Level 12 -> Level 14  (0) 2025.02.25
Bandit Level 9 -> Level 12  (0) 2025.02.11
Bandit Level 5 -> Level 8  (0) 2025.02.09