Level 27 → Level 28

옥영진·2020년 5월 21일
0

Bandit - OverTheWire

목록 보기
28/33

Level 27 → Level 28

목표

Level Goal
There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo. The password for the user bandit27-git is the same as for the user bandit27.
Clone the repository and find the password for the next level.

Commands you may need to solve this level
git

ssh://bandit27-git@localhost/home/bandit27-git/repo 이곳에 git 저장소가 있고 git 비밀번호는 bandit27 사용자 비밀번호와 같다. 해당 저장소를 clone하여 다음 레벨로 가는 패스워드를 찾으면 된다.

해결

이번 레벨은 기본적인 `git CLI'를 사용할 줄 알면 쉽게 해결할 수 있다.

mkdir /tmp/bandityj
cd /tmp/bandityj
git clone ssh://bandit27-git@localhost/home/bandit27-git/repo

ls -al
cd ./repo
ls -al
cat ./README

git clone 명령어로 저장소를 저장소를 clone하면 repo 디렉토리가 생기는데, 이 디렉토리 내에 README라는 파일이 있다. 이 파일의 내용을 살펴보면 다음 레벨로 가는 패스워드를 얻을 수 있다.

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

0개의 댓글