Overthewire Natas Level 7 To 8
Level 8
Username: natas8
Password: redacted
URL: http://natas0.natas.labs.overthewire.org
Mmmmkay. So I need to:
- Install WAMP
- base64_decode.
- strrev
- hex2bin
Here’s the script
<?php
$encodedSecret = "3d3d516343746d4d6d6c315669563362";
function decodeSecret($secret) {
return base64\_decode(strrev(hex2bin($secret)));
}
echo decodeSecret($encodedSecret);
?\>
A WAMP install and PHP script later..
VICTORY.
redacted