FlashPaper icon indicating copy to clipboard operation
FlashPaper copied to clipboard

Get URL without HTML

Open DarkKronicle opened this issue 3 years ago • 1 comments

Hello! Is there any way to get a secret from a POST request without the entire HTML page? I just want to be able to make a request and get the URL to send somewhere else.

I'm using the request curl -s -X POST -d "secret=<secret>&submit=" https://<flashpaper>/ and it returns the full view_code.php webpage.

I'm pretty sure this is where it is requested: https://github.com/AndrewPaglusch/FlashPaper/blob/master/index.php#L19-L23

Am I missing something? Or should I just fork and add the ability to add a parameter like json?

DarkKronicle avatar Aug 27 '22 20:08 DarkKronicle

https://github.com/DarkKronicle/FlashPaper Here's a simple implementation that I'm pretty sure works

DarkKronicle avatar Aug 27 '22 20:08 DarkKronicle