There is a git repository at ssh://bandit30-git@localhost/home/bandit30-git/repo via the port 2220. 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.
문제는 여전히 똑같습니다.
git clone을 한 후 상황을 지켜볼까요?
이번에 README.md 파일을 읽어보니 빈 파일이라고 알려주네요.
git log와 git branch를 살펴봐도 딱히 특이사항은 보이지 않습니다.
bandit30@bandit:/tmp/bandit_pass30/repo$ cat README.md
just an epmty file... muahaha
이 문제를 풀기 위해서는 git tag를 알아야 합니다!
📌 git tag란?
Git에서 태그(tag)는 특정 커밋에 이름표를 붙이는 기능입니다.
주로 릴리즈 버전을 찍을 때 사용합니다(예: v1.0, v2.1.0)
📌 Lightweight Tag
경량 태그라고 불리며 특정 커밋에 이름표만 붙일 뿐 추가 정보는 없습니다.
📌 Annotated Tag
주석형 태그라고 불리며 작성자, 날짜, 메시지 등을 함께 저장합니다.
문제를 풀기 위해 현재 저장소에 있는 모든 tag를 보여주는 명령어인 git tag를 실행합니다.
secret이라는 태그가 보이네요!
bandit30@bandit:/tmp/bandit_pass30/repo$ git tag
secret
git show 명령어를 사용해 태그 내용을 보도록 하겠습니다.
오! 비밀번호가 출력됐군요 :)
bandit30@bandit:/tmp/bandit_pass30/repo$ git show secret
fb5S2xb7bRyFmAvQYQGEqsbhVyJqhnDy