Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality to upload via command line tools. #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

B1t0n
Copy link

@B1t0n B1t0n commented Aug 19, 2020

I needed a way to automate uploading Pwns to this amazing tool, so I modified it a bit, to generate and accept API key.
Using the key, it generates curl command that can be copied from the GUI in order to upload new files.

An Upload with cURL button added under the main Upload button.
For the back-end API, added API key validation via Authorization header. The API key (32 chars) is generated with the user creation.
The Authorization key is saved in the application database and in the user's local storage on a successful login, it then loaded from the storage when clicking the new button.
By providing the authorization key in the "Authorization" header in an HTTP request, the application skips the "secret path" and session ID checks, but allow only file creation. It means that this is more an upload key than API key since it only authorizes the use of FileCreateHandler under api/files.go.

*Sidenote, when a client uses the upload key, it skips the secret path session validation for any request (see change at core/server.go).

Demo GIF:
pwndrop-curl-demo

High quality:
https://youtu.be/TVOlB7X6TEU

…ton added under the Upload button. Added to the backnd API key support that bypasses the need of cookies
@B1t0n B1t0n mentioned this pull request Aug 10, 2021
@lucawen
Copy link

lucawen commented Mar 23, 2022

why this its not merged?

@B1t0n
Copy link
Author

B1t0n commented Nov 30, 2022

why this its not merged?

@lucawen you may use this updated fork
https://github.com/SygniaLabs/pwndrop

@hulto
Copy link

hulto commented Dec 27, 2022

Wrote a workaround for the standard version of pwndrop:
#2 (comment)

@B1t0n
Copy link
Author

B1t0n commented Dec 28, 2022

@hulto There are more issues to address, take a look at the fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants