Natas 8 -> 9

user: natas8
pass: DBfUBfqQG69KvJvJ1iAbMoIpwSNQ9bWe

Another secret, but this time the source code shows that the secret has been encoded. The language we're seeing here in the midst of the HTML is PHP. So, let's go to our closest friendly PHP station: the terminal. Running

>>>php -a

will get you into interactive mode in the terminal. Now it's just a matter of reversing the encryption on the secret. We know that the encoded one is "3d3d516343746d4d6d6c315669563362", and that to get it there we ran

return bin2hex(strrev(base64_encode($secret)));

Therefore, we try the opposite:

print base64_decode(strrev(hex2bin($encoded)));

This yields the secret we were looking for, which when inputted gives us our password.

Comments

Popular posts from this blog

Natas 7 -> 8

Natas 11 -> 12