挖掘执行命令漏洞
常见执行命令函数
system()、passthru()、popen()、exec()等函数
搜索
exec,system,popen,passthru,proc_open,shell_exec
执行命令管道符%、|、>
测试
0 | dir c:
如何防止命令执行漏洞
escapeshellarg、escapeshellcmd
课后了解
PHP中调用系统命令的system(),exec(),passthru()区别详解
http://leeon.me/a/compare-php-system-executing-command-system-exec-passthru
http://cn.php.net/manual/zh/function.escapeshellcmd.php
原文:https://www.cnblogs.com/idebug/p/11042440.html