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 |