Wargame/Bandit

Bandit Level 29 → Level 30

startonebyone 2022. 4. 7. 00:27

Level Goal
ssh://bandit29-git@localhost/home/bandit29-git/repo에 깃 저장소가 있습니다.
bandit29-git 사용자에 대한 패스워드는 bandit29 사용자와 같습니다.
저장소를 클론하고 다음 레벨을 위한 패스워드를 찾아보세요.

<참고>
- 브랜치 : 여러 가지의 프로그래밍 작업을 동시에(독립적으로) 진행하는 것을 가능하게 만드는 저장소를 가리키는 git 고유의 포인터

Commands you may need to solve this level
git

Answer

$ ls -al

$ mkdir /tmp/mydir

$ cd /tmp/mydir

$ git clone ssh://bandit29-git@localhost/home/bandit29-git/repo

$ ls -al

$ cd repo

$ ls -al

$ cat README.md        // password가 없다는 메시지 확인

$ cd .git

$ git log

$ git show 커밋주소       // 패스워드를 알 수 없음

$ git branch -a

$ git checkout remotes/origin/dev

$ git log

$ git show 커밋 주소      // 비밀번호 확인

 

bandit30 password : 5b90576bedb2cc04c86a9e924ce42faf