Jump to content

Meterpreter PHP reverse shell


locot3
 Share

Recommended Posts

I have a PHP Meterpreter session opened but i cannot run persistence with this, Help Please,, Thanks !

Output :

php/php version of Meterpreter is not supported with this Script!

Is there any other way to have a persistence backdoor with a PHP meterpreter session ? Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Heya locot3,

Have you got a php multi handler setup on the server?

I found the best way to achieve this (Also can be seen in one of Mubix's videos on Hak5) is to use your meterpreter session to upload a php multi handler to the web server and execute it remotely,

EG: Upload multihandler file TROLLOL.PHP into a php directory on the web server, navigate to the php script as below, modify for correct patching etc.

192.168.1.10/TROLLOL.php

As long as you have a session handler listening you can tunnel this straight out of port 80 and boom, meterpreter shell! :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...