Level Goal 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 1. The concept was clear - shift each letter by 13 positions - but I didn't know which command to use. A B C D E F G H I J K L M ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ N O P Q R S T U V W X Y Z N O P Q R S T U V W X Y Z ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ A B C D E F G H I J K L M 2. Went through all the recommended commands one by one and found tr - a command for substituting characters (tr 'characters to replace' 'replacement characters'). 3. Initially tried tr 'A-Z' 'N-A', but since N comes after A in the alphabet, this was an invalid range. The correct syntax was tr 'A-Z' 'N-ZA-M'. 4. Finally solved it with cat data.txt | tr 'A-Za-z' 'N-ZA-Mn-za-m'.
4
0
Comments (0)
Log in to post a comment.
No comments yet
Start the conversation by leaving the first comment.