mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-24 06:56:59 +00:00
Rewrite challenge 1
This commit is contained in:
@@ -27,19 +27,21 @@ Visit <https://01.adventofctf.com> to start the challenge.
|
|||||||
|
|
||||||
## Solution
|
## Solution
|
||||||
|
|
||||||
When taking a look at the source we find the following comment:
|
When opening the page, we're asked for Santa's password. Unfortunately, we don't know the password. Don't stop there though, mayby someone has hidden it in the source html.
|
||||||
|
|
||||||
|
Let's open the source by pressing `Ctrl + U` and take a look at it. Near the bottom we find the following comment:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- This is an odd encoded thing right? YWR2ZW50X29mX2N0Zl9pc19oZXJl -->
|
<!-- This is an odd encoded thing right? YWR2ZW50X29mX2N0Zl9pc19oZXJl -->
|
||||||
```
|
```
|
||||||
|
|
||||||
If we then use `base64` to decode this string we get `advent_of_ctf_is_here`.
|
This looks like a `base64` encoded string so let's use the program `base64` with the `-d` decode flag to decode the text.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
> echo "YWR2ZW50X29mX2N0Zl9pc19oZXJl" | base64 -d
|
> echo "YWR2ZW50X29mX2N0Zl9pc19oZXJl" | base64 -d
|
||||||
advent_of_ctf_is_here
|
advent_of_ctf_is_here
|
||||||
```
|
```
|
||||||
|
|
||||||
We can then enter this string on the challenge website after which it will give us the flag: `NOVI{L3T_7H3_M0NTH_0F_FUN_START}`.
|
We get some plain text. If we enter it as Santa's password on the challenge page, it gives us the flag: `NOVI{L3T_7H3_M0NTH_0F_FUN_START}`.
|
||||||
|
|
||||||
This flag can then be submitted for the [challenge](https://ctfd.adventofctf.com/challenges#1-2).
|
This flag can then be submitted for the [challenge](https://ctfd.adventofctf.com/challenges#1-2).
|
||||||
|
|||||||
Reference in New Issue
Block a user