Level 30 → Level 31

옥영진·2020년 5월 25일
0

Bandit - OverTheWire

목록 보기
31/33

Level 30 → Level 31

목표

Level Goal
There is a git repository at ssh://bandit30-git@localhost/home/bandit30-git/repo. The password for the user bandit30-git is the same as for the user bandit30.

Clone the repository and find the password for the next level.

Commands you may need to solve this level
git

이전 레벨과 마찬가지로 git 저장소를 clone하여 패스워드를 찾으면 된다.

해결

일단 git 저장소를 clone하였다.

git log
git branch -a

log를 확인했지만 최초 커밋만 있었고 README.md 파일에도 별다른 내용이 없었다. branch 역시 master만 존재했다. git 명령어만 입력하면 간단한 명령어 도움말이 표시되는데, 그 중에서 tag 명령어를 확인해 보았다.

git tag
git show secret

secret 이라는 tag가 있다는 것을 알 수 있었다. tag란 커밋을 참조하기 쉽도록 알기 쉬운 이름을 붙이는 것을 말한다. secret 이라는 tag가 존재하는 것을 알았으니 git show secret 명령어로 해당 태그 정보를 확인해 보면 다음 레벨로 가는 패스워드처럼 보이는 문자열을 얻을 수 있다.

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

0개의 댓글