WEB REQUESTS

HTTP

To get the flag, start the above exercise, then use cURL to download the file returned by '/download.php' in the server shown above.
root@oco:~$ curl -O 83.136.252.14:39709/download.php
root@oco:~$ cat download.php
 * HTB{64$!c_cURL_u$3r}

HTTP REQUESTS & RESPONSES

What is the HTTP method used while intercepting the request? (case-sensitive)
root@oco:~$ curl 83.136.252.14:39709 -v
 > GET / HTTP/1.1
 * GET

Send a GET request to the above server, and read the response headers to find the version of Apache running on the server, then submit it as the answer. (answer format: X.Y.ZZ)
root@oco:~$ curl 83.136.252.14:39709 -v
< Server: Apache/2.4.41 (Ubuntu)
 * 

HTTP HEADERS

The server above loads the flag after the page is loaded. Use the Network tab in the browser devtools to see what requests are made by the page, and find the request to the flag.
root@oco:~$ BROWSER > {targetSite:port} > F12 > Network
 * look for the request made by the target server named "flag..."
    - /flag_327a6c4304ad5938eaf0efb6cc3e53dc.txt

root@oco:~$ curl 94.237.63.109:54711/flag_327a6c4304ad5938eaf0efb6cc3e53dc.txt
 * HTB{p493_r3qu3$t$_m0n!t0r}

GET

The exercise above seems to be broken, as it returns incorrect results. Use the browser devtools to see what is the request it is sending when we search, and use cURL to search for 'flag' and obtain the flag.

POST

CRUD API

First, try to update any city's name to be 'flag'. Then, delete any city. Once done, search for a city named 'flag' to get the flag.

Last updated