[bandit] Level 13 → Level 14

우주먼지·2024년 4월 8일
0

[War Game]Bandit

목록 보기
15/34
post-thumbnail

Bandit Level 13 → Level 14
Level Goal
The password for the next level is stored in /etc/bandit_pass/bandit14 and can only be read by user bandit14. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. Note: localhost is a hostname that refers to the machine you are working on

Sol)
이번엔 직접적으로 다음 레벨의 비밀번호를 알 수 없으니 직접 다음 레벨로 들어가서 비밀번호를 찾으라고 한다. 그리고 개인키 'sshkey.private'를 준다.

당연히 그냥 접속하면 접속이 안된다.

ssh 명령어의 -i 옵션으로 개인키 위치를 넣어주면 접속이 가능하다.

ssh -i sshkey.private bandit14@localhost -p 2220

그리고 비밀번호를 출력한다.

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

0개의 댓글