Skip to main content

bandit13

·130 words·1 min· loading
Table of Contents
bandit - This article is part of a series.
Part 9: This Article

링크

ssh [email protected] -p 2220
#wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw

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

다음 레벨의 암호는 /etc/bandit_pass/bandit14에 저장되며 사용자 밴디트14만 읽을 수 있습니다. 이 수준에서는 다음 암호가 아니라 다음 수준에 로그인하는 데 사용할 수 있는 개인 SSH 키가 제공됩니다. 참고: localhost는 작업 중인 시스템을 나타내는 호스트 이름입니다.

풀이
#

정보
#

  • ssh key는 (리모트머신)공개키와 (로컬머신)비공개키로 이루어진다.
  • ssh 접속을 시도하면, 이 둘을 비교하여 확인단다.
  • -i 옵션을 이용해서 파일을 보낼수있다
ssh -i ssh.private bandit14@localhost -p 2220 #접속성공
#whoami
cat /etc/bandit_pass/bandit14
#fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq
bandit - This article is part of a series.
Part 9: This Article