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
* GETSend 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
Obtain a session cookie through a valid login, and then use the cookie with cURL to search for the flag through a JSON POST request to '/search.php'
CRUD API
Last updated