Level 2 → Level 3

옥영진·2020년 5월 15일
0

Bandit - OverTheWire

목록 보기
3/33

Level 2 → Level 3

목표

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 this level
ls, cd, cat, file, du, find

다음 레벨로 가는 패스워드는 홈 디렉토리 내에 파일 이름에 공백이 포함되어 있는 파일 안에 있다고 한다.

해결

cat ./spaces\ in\ this\ filename
또는
cat ./"spaces in this filename"

공백 문자 앞에 \를 붙여 해당 문자가 공백 문자임을 표현하거나 따옴표로 전체 파일명을 감싸면 공백 문자를 포함한 파일명을 가진 파일 내용을 출력할 수 있어 다음 레벨로 가는 패스워드를 얻을 수 있다.

profile
안녕하세요 함께 공부합시다

0개의 댓글