
- login PW: YnQpBuifNMas1hcUFk70ZmqkhUU2EuaS
- 문제설명: ssh://bandit27-git@localhost/home/bandit27-git/repo 2220 port에 git 저장소가 있고 bandit27-git의 PW는 bandit27의 PW와 같다. 저장소를 복제하고 다음 단계의 PW를 찾아라
먼저 /tmp 로 이동해서 bandit27_test라는 폴더를 하나 만들겠습니다.
# cd /tmp
# mkdir bandit27_test
# cd bandit27_test
그 다음 문제에 나와있는 깃 저장소를 git clone 을 통해 다운 받겠습니다.
# git clone ssh://bandit27-git@localhost/home/bandit27-git/repo

해당 명령어를 실행하니 port 문제가 생깁니다. port 번호를 2220번으로 지정해주겠습니다.
# git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo

아래에 무언가 다운로드 되는 걸 확인 할 수 있으며
현재경로에 repo 라는 폴더가 생겼습니다.
repo 안의 README라는 파일을 읽으면 bandit28의 PW가 나오는 것을 확인할 수 있습니다.

'Linux > bandit' 카테고리의 다른 글
| Level 29 → Level 30 (0) | 2024.01.16 |
|---|---|
| Level 28 → Level 29 (0) | 2024.01.16 |
| Level 26 → Level 27 (0) | 2024.01.16 |
| Level 25 → Level 26 (0) | 2024.01.16 |
| Level 24 → Level 25 (0) | 2024.01.12 |