OverTheWire 15->16. (정답O)

0_0·2023년 3월 22일
0

OverTheWire

목록 보기
15/22

✔ 문제풀이 해설이 상세함. 정답 스포 주의!!! ✔

계정 로그아웃 : ctrl + d
계정 로그인 : (로그아웃 상태에서) ssh 계정명@bandit.labs.overthewire.org -p 2220

[OverTheWire 15->16.]

암호는 ssl암호화를 이용해서 localhost의 포트 30001에 현재 레벨의 암호를 제출하여 검색할 수 있다. => openssl s_client로 localhost의 포트 30001과 연결하기

openssl SSL 암호화를 사용하는 방법
s_client openssl의 표준 명령어. SSL/TLS를 사용하는 원격 호스트에 접속하기 위한 일반적인 SSL/TLS client를 구현하는 명령어.
openssl s_client [옵션]
-connect host:port 해당 호스트와 포트에 접속한다.

ls -> ll -> openssl s_client -connect localhost:30001 -> 현재 레벨 암호 -> ctrl+Insert 이용하여 복사

아이디 : bandit16
암호 : JQttfApK4SeyHwDlI9SXGR50qclOAil1


Helpful note: Getting “HEARTBEATING” and “Read R BLOCK”? Use -ign_eof and read the “CONNECTED COMMANDS” section in the manpage. Next to ‘R’ and ‘Q’, the ‘B’ command also works in this version of that
-> 현재 암호를 입력했을 때 HEARTBEATING이나 Read R BLOCK이 나오는 경우가 존재할 수 있다.
-> 그러면 openssl 다음에 -ing_eof을 붙인다.
openssl s_client -connect localhost:30001 -ing_eof



0개의 댓글