[Bandit] Level 30 → Level 31

우주먼지·2024년 4월 30일
1

[War Game]Bandit

목록 보기
32/34

Bandit Level 30 → Level 31
Level Goal
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.

Sol)
bandit도 거의 막바지에 접어든다. 끝나면 뭘 풀지 고민좀 해봐야겠다.
git clone 받고 repo에서 'README.md'파일을 출력하면

아무것도 없다고 한다... 무아하하
무작정 git을 다 뒤져봤다.

  • '.git/config' 출력커밋
    -> 설정값을 기록한 config문서
    -> 없다.
  • 'git log -a'
    -> commit 기록 확인
    -> initail commit of README.md 밖에 없다.
  • 'git branch -a'
    -> 모든 branch 확인
    -> 'master' branch 하나 밖에 없다.
  • 'git show-ref'
    -> repo의 모든 참조 확인
    -> 4줄이 나오는데 목록 중에 tag가 있다.
  1. 'git tag'
    -> 특정 commit을 참조하는 tag 확인
    -> 1개가 나오는데 이름이 'secret'이다.

'git show' 명령어로 까보니 비밀번호다.

+) 진짜 못찾을 뻔...

profile
오늘보다 내일 더 문제가 많았으면 좋겠다.

0개의 댓글