Skip to main content

bandit 11

·87 words·1 min· loading
Table of Contents
bandit - This article is part of a series.
Part 7: This Article

lv 11
#

링크

The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions

대소문자가 13자리씩 밀려서 나타나있다 (카이사르암호)

풀이
#

파이썬으로 ord()를 가지고 풀면 풀 수 있을듯? 근데 그럼 의미가 없는것같아서 인터넷을 참조했다.

bandit11@bandit:~$ cat data.txt | tr '[A-Za-z]' '[N-ZA-Mn-za-m]'
#The password is JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv

tr 명령어
#

  • 대부분 파이프와 사용되는 명령어이며, 치환이다
  • tr ‘변경전글자’ ‘변경할 글자’ 로 바꿀 수 있다.
  • ex tr ‘ab’ ‘6’ => 모든 a,b 를 6으로 바꿔라
bandit - This article is part of a series.
Part 7: This Article