OverTheWire: Level Goal: Bandit Level 6 → Level 7

2022. 4. 10. 23:14·OS/LINUX

[ Bandit Level 6 → Level 7 문제 리뷰 ]


Bandit Level 6 → Level 7

레벨 목표

 

다음 레벨을 위한 password는 서버 어딘가에 저장되어 있으며 다음의 특징들을 갖고 있습니다.

 

     user bandit7에게 소유됨

     bandit6 그룹에 소유됨

     사이즈는 33byte임

 

이 문제를 풀기 위해 필요할 수도 있는 명령어들

 

ls, cd, cat, file, du, find, grep


 

문제 해설

(1) find를 사용해 password 찾기

입력한 명령어

find / -user bandit7 -group bandit6 -size 33c 을 살펴보자.

 

-user bandit7 : bandit7 유저에게 속한 파일 검색

-group bandit6 : bandit6에 속한 파일 검색

-size 33c : 사이즈가 33byte인 파일 검색

 

명령어를 입력하면 이런 식으로 Permission denied 라는 허가 거부 문구가 쭉 뜰 것이다.

이를 내리다보면

빨간 줄이 쳐진 곳처럼 password가 있는 곳의 경로를 알 수 있다.

 

(2) cat으로 password 확인하기

find 명령어를 이용해 찾은 경로를 cat 명령어를 이용해 파일의 내용을 출력했다.

 

따라서 레벨 7을 위한 password는

HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

이다.

 


Level 7 → Level 8 의 해설 ⤵

2022.05.02 - [LINUX] - OverTheWire: Level Goal: Bandit Level 7 → Level 8​

'OS > LINUX' 카테고리의 다른 글

OverTheWire: Level Goal: Bandit Level 8 → Level 9  (0) 2022.05.02
OverTheWire: Level Goal: Bandit Level 7 → Level 8  (0) 2022.05.02
OverTheWire: Level Goal: Bandit Level 5 → Level 6  (0) 2022.04.10
OverTheWire: Level Goal: Bandit Level 4 → Level 5  (0) 2022.04.10
OverTheWire: Level Goal: Bandit Level 3 → Level 4  (0) 2022.04.10
'OS/LINUX' 카테고리의 다른 글
  • OverTheWire: Level Goal: Bandit Level 8 → Level 9
  • OverTheWire: Level Goal: Bandit Level 7 → Level 8
  • OverTheWire: Level Goal: Bandit Level 5 → Level 6
  • OverTheWire: Level Goal: Bandit Level 4 → Level 5
602zzang
602zzang
  • 602zzang
    yks_STUDY
    602zzang
  • 전체
    오늘
    어제
    • 분류 전체보기 (76)
      • Programming Language (36)
        • C (15)
        • PYTHON (9)
        • RUST (12)
      • Network (0)
      • Reverse Engineering (3)
      • OS (17)
        • LINUX (17)
        • UNIX (0)
      • 보안 이슈 (6)
      • CTF (6)
      • 기타 (6)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    보안동향
    소켓 통신
    코드업
    rustling
    bandit
    malloc
    Rocky Linux
    파이썬
    빡공팟
    picoCTF
    드림핵
    공급망
    P4C
    보안이슈
    백준
    python
    TeamH4C
    umassctf2025
    rust
    c
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
602zzang
OverTheWire: Level Goal: Bandit Level 6 → Level 7
상단으로

티스토리툴바