AndrewPaglusch / FlashPaper

One-time encrypted password/secret sharing
MIT License
374 stars 60 forks source link

Get URL without HTML #85

Closed DarkKronicle closed 1 year ago

DarkKronicle commented 2 years ago

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 commented 2 years ago

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