보안/Bandit

[OverTheWire: Bandit] Level4->Level5

ghghdlt 2024. 5. 3. 19:40

#문제

https://overthewire.org/wargames/bandit/bandit5.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 the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “r

overthewire.org

 

 

 

#풀이

 

cd inhere으로 inhere 디렉토리로 이동한 이후 

find로 디렉토리에 있는 파일을 확인하면...

여러개 많은데 이중에서 사람이 읽을 수 있는 파일을 찾기 위해서!

c

 

./*: 현재경로 모든 파일 

|: 연결

grep "text":text문자 가지고 있는 파일 찾기

를 해서 ./*| grep "text"로 file07이 읽을 수 있는 파일이라는 것을 알게 되었다.

 

 

 

 

 

 

 

 

 

 

-------------------

<사용한 명령어>

./*: 현재경로 모든 파일 

|: 연결

grep "text":text문자 가지고 있는 파일 찾기