반응형
inhere라는 디렉토리 안에 password가 숨겨져 있다고 한다.
cd 명령어를 이용해서 간단하게 해결할 수 있다.
cd : change directory
cd [디렉토리명] 을 하면, 디렉토리를 이동할 수 있다.
inhere 디렉토리로 이동해서 ls를 이용해 뭐가 있나 봤는데, 아무것도 없다.
그런데 문제에서 hidden file이라고 했으니, 숨겨진 파일을 찾아야 한다.
ls 명령어의 a 옵션을 이용하면 숨겨진 파일이나 디렉토리까지 모두 볼 수 있다.
.hiddden이라는 이름의 파일이 보인다.
열어보면 답이 나온다.
반응형
'wargames > bandit' 카테고리의 다른 글
bandit Overthewire | level 5 -> level 6 (0) | 2023.07.12 |
---|---|
bandit Overthewire | level 4 -> level 5 (0) | 2023.07.12 |
bandit Overthewire | level 2 -> level 3 (0) | 2023.07.12 |
bandit Overthewire | level 1 -> level 2 (0) | 2023.07.11 |
bandit Overthewire | level 0 -> level 1 (0) | 2023.07.11 |