About phpcheck-url
phpcheck-url is a skill for checking a website’s PHP version through response headers and comparing it with security guidance. It suits site operators reviewing exposed version information; hidden versions are reported as unknown.
Key features
- 01Read Server and X-Powered-By headers
- 02Check a URL with a Node.js script
- 03Report hidden versions as unknown
- 04Avoid exploit probes
Use cases
- 01Review a site's exposed PHP version
- 02Flag version information for follow-up
- 03Distinguish unknown results from execution failures
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ openai/ php2shell-checker --skill phpcheck-urlAfter installing, type/phpcheck-urlin Claude Code to confirm it loaded.
Bundled filesscripts/phpcheck.js
Details
From the project READMEFrom this skill's directory, run:
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.
Compare the reported version with current PHP security guidance. Headers can be changed and vendor backports may fix an older version, so a server-side version and package check is stronger evidence. Do not run exploit probes.
Exit codes 1 and 3 mean vulnerable and unknown, not execution failures.