There is a git repository at ssh://bandit28-git@localhost/home/bandit28-git/repo. The password for the user bandit28-git is the same as for the user bandit28.
Clone the repository and find the password for the next level.
엥..? 아까랑 내용이 똑같다.
일단 똑같이 해보자.
/tmp에 적당한 디렉터리를 만들고 clone 해줬다.
가서 확인해 보니 이번엔 ASCII text 파일이 하나 있다.
그냥 열어보니 이런 내용이 나온다. 로그를 보니
있었는데 xxxx로 변경하고 커밋한 것 같다.
git diff 명령을 통해 커밋 간의 변동사항을 알 수 있다.
우선 첫번째 커밋과 두번째 커밋 간의 차이를 보자.
첫 커밋에 있던 <TBD> 문구가 삭제되고, 우리가 알아내야 할 비밀번호가 추가된 것을 볼 수 있다.
두번째 커밋과 세번째 커밋 간의 차이를 보면,
적혀있던 비밀번호를 삭제하고, xxxx로 대체한 것을 볼 수 있다.
아무튼 비밀번호를 알아냈다.
'정보보안 > Wargame(Bandit)' 카테고리의 다른 글
Bandit Level 29 → Level 30 (0) | 2021.12.19 |
---|---|
Bandit Level 29 → Level 30 (0) | 2021.12.19 |
Bandit Level 27 → Level 28 (0) | 2021.12.19 |
Bandit Level 26 → Level 27 (0) | 2021.12.19 |
Bandit Level 25 → Level 26 (0) | 2021.12.19 |