Post

Bandit Level 27 → Level 28

문제

https://overthewire.org/wargames/bandit/bandit28.html

목표

다음 레벨의 패스워드를 찾는다.

ssh://bandit27-git@localhost/home/bandit27-git/repo 2220번 포트에 git 저장소가 있다. bandit27-git의 비밀번호는 bandit27의 비밀번호와 동일하다.

풀이

권한이 없으니 새 디렉토리로 이동한다.

1
2
bandit27@bandit:~$ mkdir /tmp/new_dir
bandit27@bandit:~$ cd /tmp/new_dir


git clone 명령어로 git 저장소를 복제한다.

1
bandit27@bandit:/tmp/new_dir$ git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo


README 파일을 확인한다.

1
2
3
4
5
6
7
bandit27@bandit:/tmp/new_dir$ ls
repo
bandit27@bandit:/tmp/new_dir$ cd repo
bandit27@bandit:/tmp/new_dir/repo$ ls
README
bandit27@bandit:/tmp/new_dir/repo$ cat README
The password to the next level is: AVanL161y9rsbcJIsFHuw35rjaOM19nR


Password : AVanL161y9rsbcJIsFHuw35rjaOM19nR

배운 것

  • git clone 명령어로 git 저장소를 복제할 수 있다.
This post is licensed under CC BY 4.0 by the author.