Bandit Level 2 → Level 3 [2/34]

2025. 5. 27. 23:11·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 file called - located in the home directory Commands you may need to solve this level ls , cd , cat

overthewire.org

 

접속방법은 쭉 동일할 예정이니 생략하자!

 

The password for the next level is stored in a file called - located in the home directory

 

 

먼저 디렉터리에 뭐가있나 확인해보니 띄어쓰기인지 여러개의 파일인지 구분이 안된다.

bandit2@bandit:~$ ls
spaces in this filename

 

 

-l 옵션으로 확인해보니 한개의 파일 이름을 저렇게 작성해놨다.

bandit2@bandit:~$ ls -l
total 4
-rw-r----- 1 bandit3 bandit2 33 Apr 10 14:23 spaces in this filename

 

 

느낌에 띄어쓰기 하면 file 지정에서 넘어가 적용이 안될테니까 ""로 감싸주면 될 듯 하다.

bandit2@bandit:~$ cat "spaces in this filename"
[PASSWORD]

 

 

정답~

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

Bandit Level 5 → Level 6 [5/34]  (0) 2025.05.28
Bandit Level 4 → Level 5 [4/34]  (0) 2025.05.27
Bandit Level 3 → Level 4 [3/34]  (0) 2025.05.27
Bandit Level 1 → Level 2 [1/34]  (0) 2025.05.27
Bandit Level 0 → Level 1 [0/34]  (0) 2025.05.27
'CTF/Bandit' 카테고리의 다른 글
  • Bandit Level 4 → Level 5 [4/34]
  • Bandit Level 3 → Level 4 [3/34]
  • Bandit Level 1 → Level 2 [1/34]
  • Bandit Level 0 → Level 1 [0/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)
  • 공지사항

  • 인기 글

  • 최근 글

  • 태그

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

티스토리툴바