Level 7 - Level 8

Username: natas8
Password: a6bZCNYwdKqN5cGP11ZdtPg0iImQQhAB
URL:      http://natas8.natas.labs.overthewire.org

This time also the website welcomed me with a input requesting for secret key and also there was a link to the source code of the logic behind the secret key validation.

This time the secret key was encoded and the function/algorithm that is used to encode the secret key was given.

Let's breakdown the above function into steps:

  1. First, the given secret string is encoded with base_64 encoding scheme.

  2. Secondly, the resultant string from the previous step is reversed.

  3. Finally, the reversed string is converted to hexadecimal.

So decode the given encoded secret key we have to perform the above mentioned steps in reverse order, i.e.,

  1. First, convert the encoded secret to binary.

  2. Secondly, the resultant string from the previous step is reversed.

  3. Finally, the reversed string is decoded with base_64 decoding scheme.

The above decoding steps can be performed with CyberChef.

CyberChef has a handy URL scheme that preserves data and operations, so I can link directly to the solution: https://gchq.github.io/CyberChef/#recipe=From_Hex('None')Reverse('Character')From_Base64('A-Za-z0-9%2B/%3D',true,false)&input=M2QzZDUxNjM0Mzc0NmQ0ZDZkNmMzMTU2Njk1NjMzNjI

On giving the decoded string as the input, got the password for the next level.

Last updated