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

ERROR in php reverse shell on local kali linux #22

Open
romarito90 opened this issue Jul 20, 2024 · 1 comment
Open

ERROR in php reverse shell on local kali linux #22

romarito90 opened this issue Jul 20, 2024 · 1 comment

Comments

@romarito90
Copy link

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

@mgiannopoulos24
Copy link

mgiannopoulos24 commented Feb 9, 2025

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants