admin 发表于 2021-7-16 09:51:33

php执行cmd/shell命令 Shell小后门

PHP执行shell命令,可以使用下面几个函数:

string system ( string $command [,int &$return_var ] )
string exec ( string $command [,array &$output [,int &$return_var ]] )
void passthru ( string $command [,int &$return_var ] )

注意:
这三个函数在默认的情况下,都是被禁止了的

如果要使用这几个函数,

就要先修改PHP的配置文件PHP.ini

查找关键字disable_functions,将这一项中的这几个函数名删除掉

然后注意重启apache。
页: [1]
查看完整版本: php执行cmd/shell命令 Shell小后门