Overview
| Field | Value |
|---|---|
| URL | http://natas8.natas.labs.overthewire.org |
| Username | natas8 |
| Password | xcoXLmzMkoIP9D7hlgPlh9XD7OgLAe5Q |
Hints
Hint 1 — Read the encoding function
Hint 1 — Read the encoding function
The source shows
$encodedSecret (the target value) and the encodeSecret() function that transforms input before comparison. Read the function carefully — what three operations does it apply, and in what order?Hint 2 — Reverse the chain
Hint 2 — Reverse the chain
The encoding order is:
base64_encode → strrev → bin2hex. To recover the original secret, apply the inverse operations in reverse order:- Hex decode the stored value
- Reverse the resulting string
- Base64 decode
Solution
Full walkthrough
Full walkthrough
Step 1 — Hex decode
Decode the hex string:The
== at the start is a giveaway that this is a reversed Base64 string (padding normally appears at the end).