Rating: 3.0
Visit [Original writeup](https://docs.abbasmj.com/ctf-writeups/picoctf2021#getahead) for better formatting.
---
**Description:** Find the flag being held on this server to get ahead of the competition
**Points:** 20
#### **Solution**
The title of the challenge is interesting, the first instinct is that there is something hidden in the headers but let's look at Hints
**Hint 1:** Maybe you have more than 2 choices
Let's look at the HTML code for this
```markup
<div class="col-md-6">
<div class="panel panel-primary" style="margin-top:50px">
<div class="panel-heading">
<h3 class="panel-title" style="color:red">Red</h3>
</div>
<div class="panel-body">
<form action="index.php" method="GET">
<input type="submit" value="Choose Red"/>
</form>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-primary" style="margin-top:50px">
<div class="panel-heading">
<h3 class="panel-title" style="color:blue">Blue</h3>
</div>
<div class="panel-body">
<form action="index.php" method="POST">
<input type="submit" value="Choose Blue"/>
</form>
</div>
</div>
</div>
```
You can see there are two different methods used. "GET" and "POST" so the hint is probably referring to a third method and we can see "HEAD" popping out in the title. Let's try a "HEAD" request.
```bash
curl -I HEAD -i http://mercury.picoctf.net:53554/index.php
```
The above curl request returns the flag as expected.
**Flag:** picoCTF{r3j3ct\_th3\_du4l1ty\_2e5ba39f}