Wargame/Bandit
Bandit Level 28 → Level 29
startonebyone
2022. 4. 4. 00:17
Level Goal
ssh://bandit28-git@localhost/home/bandit28-git/repo에서 깃 저장소가 있습니다.
bandit28-git 사용자에 대한 패스워드는 bandit28 사용자와 같습니다.
저장소를 클론하고 다음 레벨을 위한 패스워드를 찾아보세요.
Commands you may need to solve this level
git
Answer
$ ls -al
$ mkdir /tmp/mydir
$ cd /tmp/mydir
$ git clone ssh://bandit28-git@localhost/home/bandit28-git/repo
// 저장소를 클론한다.
$ ls -al
$ cd repo
$ ls -al
$ cat README.md
$ cd .git
$ git log
// git log 명령어는 각 커밋에 대한 로그를 볼 수 있습니다. 이 명령어는 .git 폴더에서 실행해야 합니다.
$ git show edd935d60906b33f0619605abd1689808ccdd5ee
// git show 를 이용하여 commit의 코드를 입력하면 해당 커밋에서 변경 사항을 확인할 수 있습니다.
bandit29 password : bbc96594b4e001778eee9975372716b2