-
[Linux 공부] Bandit wargames 2~3 단계 cat 공백 문자Development/Linux 2025. 5. 18. 21:20728x90반응형
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 spaces in this filename located in the home directory Commands you may need to solve thi
overthewire.org
2 ~ 3단계 문제는 파일명에 공백이 포함되어있을때 어떻게 읽으면 되는지 묻는 간단한 문제입니다.
1. SSH 접속
2단계 비밀번호는 263JGJPfgU6LtdEvgfWU1XP5yac29mFx 입니다.
ssh bandit2@bandit.labs.overthewire.org -p 22202. 파일 읽기
ls 명령어로 현재 디렉토리 내에 존재하는 파일을 확인 후 cat 명령어를 통해 파일을 읽습니다.
ls -al 결과 total 24 drwxr-xr-x 2 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 -rw-r--r-- 1 root root 807 Mar 31 2024 .profile -rw-r----- 1 bandit3 bandit2 33 Apr 10 14:23 spaces in this filename cat "spaves in this filename" 결과 MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx728x90반응형'Development > Linux' 카테고리의 다른 글
[Linux 공부] Bandit wargames 4~5 단계 file 읽을 수 있는 파일 찾기 (0) 2025.05.18 [Linux 공부] Bandit wargames 3~4 단계 ls 숨겨진 파일 (0) 2025.05.18 [Linux 공부] Bandit wargames 1~2 단계 cat 경로 지정 (0) 2025.05.18 [Linux 공부] Bandit wargames 0~1 단계 cat (0) 2025.05.18 [Linux 공부] Bandit wargames 0 단계 SSH (0) 2025.05.17