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.
Solution
Password: IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR
1 |
$ ssh [email protected] -p 2220 |
Let’s take a look at data.txt.
1 2 |
[email protected]:~$ cat data.txt Gur cnffjbeq vf 5Gr8L4qetPEsPk8htqjhRK8XSP6x2RHh |
Sure looks like ROT13.
There’s so many ways we could decode ROT13. There’s plenty of online decoders, and even a rot13 command (but it’s not installed by default). Instead, let’s use some of the base utilities. A tool that translates text is tr.
1 2 |
[email protected]:~$ cat data.txt | tr [a-zA-Z] [n-za-mN-ZA-M] The password is 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu |
tr just translated the characters from a to z by 13 by giving a new range to map to (n-z, a-m). The same was done for the capital letters.
Joy.