728x90
ls
bandit26.sshkey 파일이 있다.
cat bandit26.sshkey
sshkey 내용이 나온다.
sshkey를 가지고 bandit26에 ssh 접속을 한다.
ssh -i bandit26.sshkey bandit26@localhost
bandit26만 출력하고 로그아웃되었다.
bandit26의 쉘을 확인하기 위해 /etc/passwd 파일을 열어보자.
cat /etc/passwd | grep bandit
나머지와 다르게 bandit26만 /usr/bin/showtext 안에 있다.
/usr/bin/showtext 파일을 읽어보자.
cat /usr/bin/showtext
more 명령어가 실행된 후 바로 종료된다.
more 명령어가 실행될 수 있도록 창을 작게 만들고 다시 ssh로 bandit6에 접속해보자.
more이 뜨면 v를 입력하여 vi 편집기를 실행시킨다.
:을 입력하여 확장모드로 진입하고 r /etc/bandit_pass/bandit26을 입력하여 파일을 연다.
그럼 아래와 같이 다음 레벨로 가기 위한 password가 보인다.
728x90