01. Web and HTTP Protocol
This lab probes a web server with curl, exercising each HTTP method, then repeats the same requests through Burp Suite. The goal is to see which methods the server allows and to abuse PUT/DELETE on an uploads directory.
Probe Methods with Curl
Check the methods allowed on the root, then on individual pages:
curl -X OPTIONS 192.36.17.3 -V
curl -I HEAD 192.36.17.3
curl -X OPTIONS 192.36.17.3/login.php -V
Send a POST to the login form with credentials:
curl -X POST 192.36.17.3/login.php -D "name=john&password=password" -V
curl -X OPTIONS 192.36.17.3/post.php -V
curl -X OPTIONS 192.36.17.3/uploads/ -V
PUT Files to /uploads/
The uploads directory allows PUT, so write a file and upload it:
Echo “Test” > hello.txt
Curl 192.36.17.3/uploads/ --upload-file hello.txt
DELETE Files from /uploads/
Curl -X DELETE 192.36.17.3/uploads/hello.txt
Burp Suite
The same requests can be built and replayed in Burp.