Dukbong

[Linux 공부] Bandit wargames 1~2 단계 cat 경로 지정 본문

Linux

[Linux 공부] Bandit wargames 1~2 단계 cat 경로 지정

dukbong_dev 2025. 5. 18. 21:14
반응형
 

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

1 ~ 2단계 문제는 명시적으로 파일을 지정할 수 있는지 물어보는 간단한 문제입니다.

1. SSH 접속

1 ~ 2단계 비밀번호는 ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If 입니다.

ssh bandit1@bandit.labs.overthewire.org -p 2220

2. 파일 읽기

ls로 현재 디렉토리에 있는 파일을 확인 후 cat 명령어 명시적으로 경로를 지정하여 파일을 읽습니다.

ls

결과
-

cat ./-

결과
263JGJPfgU6LtdEvgfWU1XP5yac29mFx
반응형
Comments