김승현

[OverTheWire] Bandit Level 2 → Level 3 본문

Linux/OverTheWire : Bandit

[OverTheWire] Bandit Level 2 → Level 3

kshind 2023. 2. 15. 18:15

문제

문제 원문

다음 단계로 가는 password가 적힌 파일의 이름은 홈디렉터리의 spaces in this filename이다.

 

풀이

사진에서 볼 수 있듯이 파일명이 spaces in this filename이다.

cat으로 보려고 해도 'spaces', 'in', 'this', filename'이라는 각각의 파일을 확인하려고 한다.

 

이런 문제는 파일명을 ''(작은 따옴표)로 묶으면 해결할 수 있다.

 


다음 문제

https://kshind.tistory.com/5

 

[OverTheWire] Bandit Level 3 → Level 4

문제 password는 inhere 디렉터리 안에 숨겨진 파일에 있다고 한다. 풀이 ls를 해봤을 때 inhere 디렉터리를 확인할 수 있다. cd 명령어를 통해서 inhere 디렉터리로 들어가서 ls를 해봐도 아무것도 뜨지

kshind.tistory.com