메-모해봅시다.

Bandit Level 3 → Level 4 본문

리눅스/Over The Wire

Bandit Level 3 → Level 4

RollingPumpkin 2020. 5. 8. 15:57

Level Goal

The password for the next level is stored in a hidden file in the inhere directory.

Commands you may need to solve this level

ls, cd, cat, file, du, find


목표

 

다음 단계로 가는 비밀번호는 inhere 디렉토리의 숨김파일에 있습니다.

 

이 단계를 해결할 때 유용한 명령어

 

ls, cd, cat, file, du, find



-어떻게 풀까?


우선 cd inhere를 입력해 바로 inhere디렉토리로 들어가도록 하자.

그 후, ls를 입력해 inhere에 있는 파일들을 탐색해 봐도 아무것도 보이지 않는 것을 확인한다.

어떠한 파일도 나오지 않는다.

그러나 해결은 간단하다.

ls 뒤에 모든 파일을 표시하라는 의미로 -a(all)을 입력하면 숨겨진 파일명을 확인할 수 있다.

ls -a 를 이용해 찾아낸 숨겨진 파일 .hidden

이제 cat 명령어로 읽으면 끝이다.

bandit4로 가는 비밀번호

다음 단계로 가는 비밀번호가 pIwrPrtPN36QITSp3EQaw936yaFoFgAB 인 것을 알아냈으니 다음 단계로 넘어가도록 하자.

ssh bandit4@bandit.labs.overthewire.org -p 2220

'리눅스 > Over The Wire' 카테고리의 다른 글

Bandit Level 5 → Level 6  (0) 2020.05.09
Bandit Level 4 → Level 5  (0) 2020.05.08
Bandit Level 2 → Level 3  (0) 2020.05.08
Bandit Level 1 → Level 2  (0) 2020.05.08
Bandit Level 0 → Level 1  (0) 2020.05.08