php-reverse-shell icon indicating copy to clipboard operation
php-reverse-shell copied to clipboard

ERROR in php reverse shell on local kali linux

Open romarito90 opened this issue 1 year ago • 1 comments

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

romarito90 avatar Jul 20 '24 01:07 romarito90

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.

mgiannopoulos24 avatar Feb 09 '25 21:02 mgiannopoulos24