워게임

리눅스 워게임 bandit11 공략 (bandit 12 비번)

oose. 2023. 4. 1. 21:51

<문제>

알파벳이 13자리 회전되어있다고 한다.

그리고 참고할 만한 사이트를 적어주었다.

https://en.wikipedia.org/wiki/ROT13

 

ROT13 - Wikipedia

From Wikipedia, the free encyclopedia Simple encryption method ROT13 ("rotate by 13 places", sometimes hyphenated ROT-13) is a simple letter substitution cipher that replaces a letter with the 13th letter after it in the alphabet. ROT13 is a special case o

en.wikipedia.org

 

들어가서 읽어보니 ROT13은 알파벳을 13자리 회전하여 문장을 암호화시키는 방법이다.

즉 'A'는 a로부터 13자리 뒤에 있는 'N'으로 치환되고, 'M'은 'Z', 'N'은 'A'로 치환된다.

그리고 암호를 풀 수 있는 명령어가 나와있다.

tr 'A-Za-z' 'N-ZA-Mn-za-m' 을 이용하면 될 것 같다.

 

이제 문제를 풀어보자.

파일을 열어보니 알아볼 수 없는 문장이 나온다. 

위의 명령어를 이용하여 해독하여보자.

 

파이프를 이용하여 연결해주었다.

password는 JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv 라고 한다.