From 9607e2c25184ed09fe695a77aad0fa13c5b31825 Mon Sep 17 00:00:00 2001 From: wikiboss Date: Mon, 26 Oct 2026 09:42:22 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=20PHP2Shell(CVE-2026?= =?UTF-8?q?-109618/109619)=20=E5=AE=89=E5=85=A8=E5=9F=BA=E7=BA=BF=E4=B8=8E?= =?UTF-8?q?=20php.ini=20=E9=98=B2=E6=8A=A4=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/SecurityPhpIniTest.php | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 tests/SecurityPhpIniTest.php diff --git a/tests/SecurityPhpIniTest.php b/tests/SecurityPhpIniTest.php new file mode 100644 index 0000000..dded575 --- /dev/null +++ b/tests/SecurityPhpIniTest.php @@ -0,0 +1,67 @@ + 0) { + echo "【测试结论】共 {$failedCount} 项安全指标不符合要求,存在安全隐患!\n"; + exit(1); +} else { + echo "【测试结论】所有安全防护指标均已满足,安全基线通过!\n"; + exit(0); +}