메-모해봅시다.

Bandit Level 4 → Level 5 본문

리눅스/Over The Wire

Bandit Level 4 → Level 5

RollingPumpkin 2020. 5. 8. 23:06

Level Goal

The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.

Commands you may need to solve this level

ls, cd, cat, file, du, find


목표

 

다음 단계로 가는 비밀번호는 inhere디렉토리 안에 사람이 읽을 수 있는 파일에 있습니다.

팁 : 터미널이 너무 지저분한 경우 "reset"명령을 시도하십시오.

 

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

 

ls, cd, cat, file, du, find



-어떻게 풀까?


우선 inhere디렉토리를 열어봅시다.

 

...?

파일이 너무 많다...

여기서 리눅스의 고수라면 식별해내는 방법이 있겠지만 저는 별 수 없습니다...

WA....

하나씩 뜯어보았습니다...

팁에서 'reset'명령어를 알려준 이유를 알겠습니다...

그러면 -file07 에 비밀번호가 있는 것을 알아냈으니 reset 혹은 clear를 이용해 깔끔하게 치운 후 다시 띄워봅시다.

 

Erase is control-H (^H). 라고 ctrl + H 로도 지울 수 있다고 친절히 알려주네요

이제 비밀번호가 koReBOKuIDDepwhWk7jZC0RTdopnAYKh 인것도 알아냈으니 다음으로 넘어갑시다.

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

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

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