phpcheck-url — Claude Code skill: what it does, how to install
phpcheck-url is a Claude Code skill that inspects advertised PHP versions in HTTP response headers. It evaluates target URLs or hostnames against upstream release baselines.
Apache-2.0 ★ 1,477 updated 2026-10-22
npx skills add openai/php2shell-checker --skill phpcheck-url -a claude-codeWhat phpcheck-url does
The tool queries the specified address to read Server and X-Powered-By response headers. Running it requires Node.js to execute node scripts/phpcheck.js "<url>" --json from the skill folder.
Branches PHP 5.4–5.6, 7.0–7.4, 8.0, and 8.1 return a potentially_vulnerable status with exit code 1. An ok status with exit code 0 is reserved for upstream fixed versions: 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Because HTTP headers cannot reveal backported vendor patches, findings are reported as version-based warnings rather than confirmed vulnerabilities.
Hidden versions, prereleases, and network failures result in exit code 3 (unknown). Active exploit probing is omitted. Passing invalid arguments causes the script to terminate with exit code 2.
What it helps with
- read advertised PHP version numbers from response headers
- identify potentially unpatched PHP branches without exploit payloads
- get automated version verification status via JSON exit codes
Example prompts for the agent
- Check the advertised PHP version on
https://example.com - Run phpcheck-url for hostname
api.example.com
How to install phpcheck-url
1Skills CLI (Vercel)
npx skills add openai/php2shell-checker --skill phpcheck-url -a claude-code2Manually: put the files in place
~/.claude/skills/phpcheck-url/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/phpcheck-url/
1Skills CLI (Vercel)
npx skills add openai/php2shell-checker --skill phpcheck-url -a codex2Manually: put the files in place
.agents/skills/phpcheck-url/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openai/php2shell-checker --skill phpcheck-url -a cursor2Manually: put the files in place
.cursor/skills/phpcheck-url/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openai/php2shell-checker skills/phpcheck-url2Manually: put the files in place
.github/skills/phpcheck-url/SKILL.md1Skills CLI (Vercel)
npx skills add openai/php2shell-checker --skill phpcheck-url -a gemini-cli2Platform CLI
gemini skills install https://github.com/openai/php2shell-checker --path skills/phpcheck-urlManually: put the files in place
.devin/skills/phpcheck-url/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about phpcheck-url
How to install phpcheck-url in Claude Code?
Run npx skills add openai/php2shell-checker --skill phpcheck-url -a claude-code.
What does phpcheck-url do?
It fetches headers from a target URL, checks Server and X-Powered-By, and flags outdated PHP releases.
What is required to run phpcheck-url?
Node.js must be installed to run the underlying node scripts/phpcheck.js script.
Source text
SKILL.md · Apache-2.0
--- 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.
© openai · Apache-2.0 · openai/php2shell-checker