본문 바로가기
Security/OverTheWire

Bandit Level 15 → Level 16 (SSL/TLS - openssl)

by curious week 2025. 12. 1.

문제

The password for the next level can be retrieved by submitting the password of the current level to port 30001 on localhost using SSL/TLS encryption.

Helpful note: Getting “DONE”, “RENEGOTIATING” or “KEYUPDATE”? Read the “CONNECTED COMMANDS” section in the manpage.

## 문제 요구사항
SSL/TLS 암호화를 사용하여 현재 레벨의 비밀번호를 로컬호스트의 포트 30001에 제출하면 확인

## 내가 사용한 명령어
ssh bandit15@bandit.labs.overthewire.org -p 2220
cat /etc/bandit_pass/bandit15
openssl s_client -connect localhost:30001
read R BLOCK 아래에 비밀번호 입력

## 왜 이 명령어를 골랐는가
openssl s_client -connect localhost:30001
openssl → 암호화/SSL 관련 툴 모음
s_client → “SSL 클라이언트” 모드로 실행
-connect localhost:30001 → 접속할 대상 지정

메시지 전체를 한 줄에 작성하면 아래와 같다.
echo "$(cat /etc/bandit_pass/bandit15)" | openssl s_client -connect localhost:30001 -quiet