Bandit Level 4 → Level 5 [4/34]

2025. 5. 27. 23:24·CTF/Bandit

 

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 a hidden file in the inhere directory. Commands you may need to solve this level ls , cd , cat , file

overthewire.org

 

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.

 

 

마찬가지로 ls -la를 시전한다.

bandit4@bandit:~$ ls -la
total 24
drwxr-xr-x  3 root root 4096 Apr 10 14:23 .
drwxr-xr-x 70 root root 4096 Apr 10 14:24 ..
-rw-r--r--  1 root root  220 Mar 31  2024 .bash_logout
-rw-r--r--  1 root root 3771 Mar 31  2024 .bashrc
drwxr-xr-x  2 root root 4096 Apr 10 14:23 inhere
-rw-r--r--  1 root root  807 Mar 31  2024 .profile

 

 

"hidden file in the inhere directory."라고 했으니 inhere로 들어가서 확인해보자.

bandit4@bandit:~$ cd inhere/
bandit4@bandit:~/inhere$ ls -la
total 48
drwxr-xr-x 2 root    root    4096 Apr 10 14:23 .
drwxr-xr-x 3 root    root    4096 Apr 10 14:23 ..
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file00
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file01
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file02
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file03
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file04
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file05
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file06
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file07
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file08
-rw-r----- 1 bandit5 bandit4   33 Apr 10 14:23 -file09

 

 

주어진 command list가 ls, cd, cat, file, du, find 이렇게 있는데 데이터를 확인하는 명령어는 cat 밖에 없으므로 높은 확률로 데이터 형태는 텍스트지 않을까 싶다.

bandit4@bandit:~/inhere$ file ./-file*
./-file00: PGP Secret Sub-key -
./-file01: data
./-file02: data
./-file03: data
./-file04: data
./-file05: data
./-file06: data
./-file07: ASCII text
./-file08: data
./-file09: data

 

 

혼자만 ASCII text인 녀석이 있어서 이걸 열어보자.

bandit4@bandit:~/inhere$ cat ./-file07
[PASSWORD]

 

정답~

'CTF > Bandit' 카테고리의 다른 글

Bandit Level 6 → Level 7 [6/34]  (0) 2025.05.28
Bandit Level 5 → Level 6 [5/34]  (0) 2025.05.28
Bandit Level 3 → Level 4 [3/34]  (0) 2025.05.27
Bandit Level 2 → Level 3 [2/34]  (0) 2025.05.27
Bandit Level 1 → Level 2 [1/34]  (0) 2025.05.27
'CTF/Bandit' 카테고리의 다른 글
  • Bandit Level 6 → Level 7 [6/34]
  • Bandit Level 5 → Level 6 [5/34]
  • Bandit Level 3 → Level 4 [3/34]
  • Bandit Level 2 → Level 3 [2/34]
LimSeongHyeon
LimSeongHyeon
삽질의 정수
  • LimSeongHyeon
    임성현의 개발블로그
    LimSeongHyeon
  • 전체
    오늘
    어제
    • 분류 전체보기 (38)
      • Security (2)
        • Forensic (1)
        • Tools (1)
        • Report (0)
      • CTF (11)
        • Bandit (11)
      • Basic (0)
        • Data Structures (0)
        • Algorithms (0)
        • Databse (0)
        • Network (0)
      • App (0)
        • iOS (0)
        • Flutter (0)
        • Android (0)
      • Server (1)
        • Backend (0)
        • Database (0)
        • Network (0)
        • DevOps (1)
      • Certification (17)
        • 리눅스마스터 1급 (17)
        • 정보보안기사 (0)
      • 일상 (7)
        • 개발 (2)
        • 취미 (0)
        • 일지 (0)
        • 메모 (5)
  • 공지사항

  • 인기 글

  • 최근 글

  • 태그

    리눅스
    리눅스마스터 1급
    소프트웨어 설치 및 관리
    시스템 보안 및 관리
    메모리 포렌식
    Volatility3
    tcp wrapper
    aws요금
    포테이너
    mrproper
    시스템 백업
    xined
    Bandit
    장치의 설치 및 관리
    슈퍼 데몬
    zombie-crontab
    s/w 설치 및 관리
    리눅스 마스터 1급
    prompt injection
    kubernates
    Portainer
    Proxmark3
    LLM
    overthewire
    하드 프리즈
    mac
    주변장치 관리
    파일 시스템
    인증 서비스
    파일 서비스
  • hELLO· Designed By정상우.v4.10.4
LimSeongHyeon
Bandit Level 4 → Level 5 [4/34]
상단으로

티스토리툴바