OverTheWire - Natas - Level 7 → Level 8
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!
Login using given credentials.
Following code is used to verify the entered secret, as available in the site sourcecode:
The entered secret is compared with the
$encodedSecret to verify the entered secret. Based on the code, the entered secret is:
- Base64 encoded:
- String reversed:
- Converted from binary to hex:
The solution is simple, just take the value from
$encodedSecret and execute the steps backwards to get the valid secret.