Skip to main content

phpcheck-url:通过网址检查 PHP 版本

通过网站网址或主机名的 HTTP 标头检查声称的 PHP 版本及潜在漏洞状态。

来源信息

仓库
openai/php2shell-checker
最近来源活动
2026年10月22日 22:55
检测到的 SKILL.md 语言
英语
星标
836
Forks
83

用途

提供网站网址或主机名以检查其 PHP 版本。

必要前提

需要 Node.js。

操作说明

  1. 进入技能目录。
  2. 使用目标网址运行 PHP 检查脚本。

限制

无法验证已安装软件包中是否包含向后移植的安全修复。

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
phpcheck-url
description
Check the advertised PHP version from a URL or hostname.
From this skill's directory, run: ```sh node scripts/phpcheck.js "https://example.com" --json ``` Use HTTPS for a bare hostname. The checker reads `Server` and `X-Powered-By` headers. If the version is hidden, report unknown. Versions below an upstream fix return `potentially_vulnerable` with exit code 1. PHP 5.4–5.6, 7.0–7.4, 8.0 and 8.1 also return this warning. A higher patch number on those branches, such as 8.1.35, does not establish a fix. Exit code 1 is a version-based warning, not proof that the installed package is unpatched. HTTP headers cannot tell whether the version contains a backported fix. Describe the result as potentially vulnerable, never confirmed vulnerable. An `ok` result with exit code 0 means only that the advertised stable version meets an upstream fixed release: 8.2.35, 8.3.36, 8.4.27 or 8.5.12. The installed build is not verified. Missing or unrecognized versions, prereleases and failed checks return `unknown` with exit code 3. Headers can be changed. A server-side check of the package serving the site is stronger evidence. Do not run exploit probes. Exit codes 1 and 3 are check results. Invalid arguments exit with code 2.
在 GitHub 查看