Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

upload non-encapsulated payload when zip installation fails #52

Merged
merged 1 commit into from Aug 4, 2018

Conversation

viniciusmarangoni
Copy link

When playng the Stapler CTF (https://www.vulnhub.com/entry/stapler-1,150/) I realized that wpxf wouldn't able to get a reverse shell using the admin_shell_upload module. The module was able to upload the zip file in wp-content/uploads/ but wasn't able to extract it to wp-content/plugins/ because lack of permissions on this dir. I don't know if this is a common behaviour. I wrote a workaround that uploads directly the php payload file (without encapsulating it in a zip) and then accesses the payload in wp-content/uploads/PAYLOADNAME.php

I apologize for any mistake in my code. I'm not familiar with ruby.

@rastating rastating self-assigned this Aug 4, 2018
@rastating rastating merged commit 19e3493 into rastating:development Aug 4, 2018
rastating added a commit that referenced this pull request Aug 4, 2018
@rastating
Copy link
Owner

Thanks for the contribution @viniciusmarangoni - I've just merged it into the development branch 🎉

This should be in the next minor release, which will probably be in a few weeks time.

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

Successfully merging this pull request may close these issues.

None yet

3 participants