| info | value |
|---|---|
| user | natas8 |
| pass | xcoXLmzMkoIP9D7hlgPlh9XD7OgLAe5Q |
| host | http://natas8.natas.labs.overthewire.org |
explanation
on this page we are greeted with a form input, which is commonly used to collect user data, plus the source code, how nice of them
html
|
|
presented with the following php snippet
php
|
|
we got:
- an encoded secret that will be encoded
- a function with the encoding process (conveniently enough)
- a conditional that checks whether the key exists and secret equals the hardcoded secret
so our task is to fulfill the conditional in line 8
luckily the decoding process is straight forward:
from hex > reverse > base64 decode
since we work with cli only, ta-da:
sh
|
|
now we only need to submit it into the previously mentioned input form with the name of the input field
sh
|
|
html
|
|