꿀 떨어지는 코딩 양봉장

Bandit Level14 ->Levle15 본문

Language/linux

Bandit Level14 ->Levle15

nayoon030303 2021. 9. 23. 20:08

Level Goal

The password for the next level can be retrieved by submitting the password of the current level to 
port 30000 on localhost.

다음 레벨의 비밀번호는 현재 레벨의 비밀번호를 localhost의 포트 30000에 제출하여 검색할 수 있습니다. 

 

nc명령어를 사용해서 문제를 풀어보겠습니다.

nc명령어

TCP 또는 UDP 프로토콜을 사용하는 네트워크 환경에서 데이터를 읽고 쓰는 간단한 프로그램. 일반적으로 상대 서버의 포트가 열렸는지 확인하거나, 직접 서버가 되어 원격 서버에서(클라이언트) 접속이 가능한지 확인하는 용도.
일반적으로 UNIX의 cat과 비슷한 사용법을 가지고 있지만 cat이 파일에 쓰거나 읽듯이 nc는 network connection에 읽거나 쓴다. 

 

사용방법

nc > [옵션] [target host] [ports] 

 

우리의 target host는 localhost이고 port번호는 30000입니다. 

터미널에서 nc로 localhost에 30000포트로 접속한 다음 접속이 성공했다면 데이터를 입력합니다. 

bandit14@bandit:~$ nc localhost 30000
4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e
Correct!
BfMYroe26WYalil77FoDi9qh59eK5xNr

다음 레벨의 비밀번호는 BfMYroe26WYalil77FoDi9qh59eK5xNr 입니다!

'Language > linux' 카테고리의 다른 글

Bandit Level15 ->Levle16  (0) 2021.09.26
Bandit Level13 ->Levle14  (0) 2021.09.23
Bandit Level12 ->Levle13  (0) 2021.09.22
Bandit Level11 ->Levle12  (0) 2021.09.21
Bandit Level10 ->Levle11  (0) 2021.09.21