Web Fundamentals

image

HINT:

  • GET request. Make a GET request to the web server with path /ctf/get

  • POST request. Make a POST request with the body "flag_please" to /ctf/post

  • Get a cookie. Make a GET request to /ctf/getcookie and check the cookie the server gives you

  • Set a cookie. Set a cookie with name "flagpls" and value "flagpls" in your devtools and make a GET request to /ctf/sendcookie

nmap -A 10.10.24.60
image

Then browse http://10.10.95.82:PORT

What's the GET flag?

http://10.10.95.82:PORT/ctf/get

image

What's the POST flag?

curl 10.10.95.82:PORT/ctf/post -X POST --data "flag_please"
image

http://10.10.95.82:PORT/ctf/getcookie

image

http://10.10.95.82:PORT/ctf/sendcookie

Set:

  • cookie with name "flagpls"

  • value "flagpls"

  • then refresh

image

CONGRATULATIONS!!

Thank you for reading. :)

By AdaniKamal

Last updated