Bandit Level 10 → Level 11

Minchae Kim·2023년 5월 15일
0

📌 Level 10 → Level 11


https://overthewire.org/wargames/bandit/bandit11.html

🚩 Level Goal

The password for the next level is stored in the file data.txt, which contains base64 encoded data.

🚩 Problem Solving

해당 level은 감사하게도, Level Goal에 사용해야 하는 명령어에 대해 안내해주고 있다. data.txt 안에 인코딩 되어 있다고 하니, base64 명령어를 활용하여 역으로 디코딩하면 해결할 수 있다.

🔹 Process

디코딩하기 위해서는 base64의 디코딩 option -d를 사용하면 된다.

base64 -d data.txt
→ The password is IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

🔹 Password

Bandit11 Password : 6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM

📌 Linux Commands


  • grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

🚩 base64

base64은 8비트 이진 데이터(실행 파일이나 ZIP 파일)를 일련의 문자열로 바꾸는 인코딩 방식이다. 여기서 '일련의 문자열로 바꾼다'는 것은, 문자 코드에 영향 받지 않는 공통 ASCII 영역의 문자들로만 바꾸는 것을 의미한다.

base64 [option][file name]

🔹 Option

base64 명령어는 문자열을 인코딩 또는 디코딩 해준다.

  • -d : base64로 인코딩 된 텍스트를 디코딩한다. --decode로도 사용한다.
  • -i : 디코딩 할 때, 알파벳이 아닌 문자를 무시해준다.
profile
Security Researcher 시켜줘 !

0개의 댓글