Writeup for Pie generator (Pwn 1) houseplant ctf
Pie generator
This website lets you make a pie and have it too!
http://challs.houseplant.riceteacatpanda.wtf:30007
This was an easy challenge.
Go to the URL and open network tab in inspect elements.
Enter any number and click submit.
You will get output like our number was 56.
You will see a POST request. Right click and select copy URL.
You will get something like this
curl ‘http://challs.houseplant.riceteacatpanda.wtf:30007/' -H ‘User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0’ -H ‘Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8’ -H ‘Accept-Language: en-US,en;q=0.5’ — compressed -H ‘Referer: http://challs.houseplant.riceteacatpanda.wtf:30007/' -H ‘Content-Type: application/x-www-form-urlencoded’ -H ‘Connection: keep-alive’ -H ‘Cookie: _ga=GA1.2.1700934888.1587754716; _gid=GA1.2.1468691736.1588083039’ -H ‘Upgrade-Insecure-Requests: 1’ — data ‘number=56×tamp=1588084.684605’
In my case I have to change number=56 to 78.
Then paste it in terminal.
You got the flag.
Flag: rtcp{w0w_sO_p53uD0}