해킹/해킹기초

[Bandit-OverTheWire] Level5 -> Level 6

리치라이프 연구소 2025. 2. 6. 21:18
반응형

반응형

 

Bandit Level 5 → Level 6
Level Goal
The password for the next level is stored 

in a file somewhere under the inhere directory 

and has all of the following properties:

human-readable
1033 bytes in size
not executable
Commands you may need to solve this level

 

 

 

반응형

 

디렉토리가 너무 많다.

사용해야할 명령어 : find

많은 디렉터리 속에 조건에 맞는 파일을 하나 찾아야 함.

find [경로] [옵션] : 해당 경로에 있는 파일을 옵션에 맞게 검색.

find 명령어를 사용하여 1033 bytes인 파일을 찾기

 

bandit5@bandit:~/inhere$ find . -size 1033c

 



./maybehere07/.file2 을 찾음


maybehere07 디렉터리 안에 .file2 라는 파일

bandit5@bandit:~/inhere$ cat ./maybehere07/.file2

반응형

 

 

비밀번호 획득~!

반응형