Skip to content

ERROR in php reverse shell on local kali linux #22

Open

Description

@romarito90

Hello everyone

I have a problem when a try to connect a reverse shell with the php reverse shell from

https://github.com/pentestmonkey/php-reverse-shell

I'm using a local kali linux installed in virtual machine in VMWARE in my laptop

the IP of my kali is the following 192.168.86.2

image

I'm trying to resolve the machine vulnversity of TRYHACKME this is the IP that I had from TRYHACKE this time

image

I start first the listener in my local kali linux in port 4444

image

this is my configuration in the php reverse shell code

image

but when a upload the shell to the server machine and try to execute the file this fails

image

image

please someone can help me, this error only occurs when I try a reverse shell in TRYHACKME machines, because when I try another machines downloaded from vulnhub or another resources in local this works fine

I dont know why just with this platform

thanks in advanced

Activity

  1. mgiannopoulos24 commented on Feb 9, 2025

    @mgiannopoulos24

    I am not sure that you have the correct extension. It should be .php and not phtml. Also you don't use your local or real IP for these THM machines. The platform provides an openvpn configuration file for your account. You type the following in your terminal to open the tunnel:

    sudo openvpn [name].ovpn

    Then you can have access through your browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions