Bandit Level 13 → Level 14
문제
https://overthewire.org/wargames/bandit/bandit14.html
목표
/etc/bandit_pass/bandit14
파일에 저장된 패스워드를 찾는다.
이 레벨에서는 다음 비밀번호를 얻을 수 없지만 다음 레벨에 로그인하는 데 사용할 수 있는
개인 SSH 키
를 얻을 수 있다.
풀이
개인 키 파일이 있는 것을 확인할 수 있다.
1
2
bandit13@bandit:~$ ls
sshkey.private
개인 키 파일을 이용해 다음 레벨에 접속한다.
1
ssh bandit14@localhost -i sshkey.private -p 2220`
-i
: 사용할 개인 키 파일
-p
: 접속할 포트
/etc/bandit_pass/bandit14
파일을 확인한다.
1
2
bandit14@bandit:~$ cat /etc/bandit_pass/bandit14
fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq
Password : fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq
배운 것
ssh
명령어를 사용해 리눅스 서버에 원격 접속할 수 있다.ssh
명령어의-i
옵션으로 개인 키 파일을 사용할 수 있다.ssh
명령어의-p
옵션으로 특정 포트에 접속할 수 있다.
This post is licensed under CC BY 4.0 by the author.