Bandit Level 1 → Level 2 [1/34]

2025. 5. 27. 23:06·Security/CTF

 

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 readme located in the home directory. Use this password to log into bandit1 using SSH. W

overthewire.org

 

접속

 

$ ssh -p 2220 bandit1@bandit.labs.overthewire.org
$ password 입력

 

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

 

flag를 찾기 위해 ls -l을 사용했는데 "-"라는 파일이 나온다.

$ ls -l
total 4
-rw-r----- 1 bandit2 bandit1 33 Apr 10 14:23 -

 

 

그래서 cat -을 했더니 -가 옵션 지정자라 파일이 안열리고 옵션값 달라고 실행이 안된다...

$ cat -

"
"
\
\
^C

 

-로만 시작 안하면 되는거니까 Full Path 적으면 되겠다 싶어 ./를 붙였다.

$ cat ./-
[PASSWORD]

 

정답~

 

 

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

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 2 → Level 3 [2/34]  (0) 2025.05.27
Bandit Level 0 → Level 1 [0/34]  (0) 2025.05.27
'Security/CTF' 카테고리의 다른 글
  • Bandit Level 4 → Level 5 [4/34]
  • Bandit Level 3 → Level 4 [3/34]
  • Bandit Level 2 → Level 3 [2/34]
  • Bandit Level 0 → Level 1 [0/34]
LimSeongHyeon
LimSeongHyeon
개발 + 정보보안
  • LimSeongHyeon
    삽질의 정수
    LimSeongHyeon
  • 전체
    오늘
    어제
    • ALL (46)
      • CS (4)
        • DevOps (1)
        • Network (3)
        • Application (0)
        • Cloud (0)
        • Cryptography (0)
        • Others (0)
      • Programming (0)
        • Others (0)
      • Security (14)
        • 주통기 (1)
        • CTF (11)
        • Forensic (1)
        • Others (1)
      • Certification (18)
        • 리눅스마스터 1급 (17)
        • 정보보안기사 (1)
      • Report (3)
        • Tools (3)
        • Windows (0)
        • Shell (0)
      • Diary (7)
        • 개발 (2)
        • 취미 (0)
        • 일지 (0)
        • 메모 (5)
  • 공지사항

  • 인기 글

  • 최근 글

  • 태그

    소프트웨어 설치 및 관리
    xined
    운영체제 명령실행
    시스템 보안 및 관리
    prompt injection
    파일 시스템
    overthewire
    zombie-crontab
    code injection
    Bandit
    tcp wrapper
    Proxmark3
    Phisical Layer
    VMware
    파일 서비스
    하드 프리즈
    슈퍼 데몬
    주변장치 관리
    LDAP Injection
    aws요금
    시스템 백업
    mac
    인증 서비스
    장치의 설치 및 관리
    리눅스 마스터 1급
    ssh
    mrproper
    리눅스마스터 1급
    리눅스
    s/w 설치 및 관리
  • hELLO· Designed By정상우.v4.10.4
LimSeongHyeon
Bandit Level 1 → Level 2 [1/34]
상단으로

티스토리툴바