Level Goal
The password for the next level is stored somewhere on the server and has all of the following properties:
owned by user bandit7
owned by group bandit6
33 bytes in size
비밀번호는 서버 어딘가에 저장되어 있고 다음과 같은 속성을 모두 가지고 있다
Code
bandit6@bandit:~$ find / -size 33c
#데이터
bandit6@bandit:~$ find / -user bandit7 -group bandit6 -size 33c -exec cat {} \;
#비밀번호
Level 5의 확장 버전이어서 똑같이 find 명령어를 사용하였다. 다만 서버 어딘가에 저장되어 있으므로 디렉토리 범위를 /(root)로 지정하였다. 처음에는 size 옵션만으로 검색했더니 너무 많이 출력돼서 user, group 옵션도 지정하여 검색하였다.
'wargame > bandit' 카테고리의 다른 글
Level 8 → Level 9 (0) | 2019.02.14 |
---|---|
Level 7 → Level 8 (0) | 2019.02.14 |
Level 5 → Level 6 (0) | 2019.02.14 |
Level 4 → Level 5 (0) | 2019.02.14 |
Level 3 → Level 4 (0) | 2019.02.14 |