openai/php2shell-checker

★ 1,445⑂ 144

About openai/php2shell-checker

openai/php2shell-checker is an open-source project on GitHub, mainly written in JavaScript. It currently holds 1,445 stars and 144 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

Git Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository openai/php2shell-checker · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

PHP Version Checker

Get a version-based PHP2Shell warning from a website's PHP headers or local installation.

To install both skills, ask Codex:

$skill-installer install both skills from https://github.com/openai/php2shell-checker

Use phpcheck-server when you have server access, or phpcheck-url when you only have a URL:

$phpcheck-url check https://example.com
$phpcheck-server check the PHP version serving my site

Run directly

Check a website:

node phpcheck.js "https://example.com"

Results

| Result | Exit code | Meaning | | --- | --- | --- | | OK | 0 | Advertised version meets an upstream fixed release. | | POTENTIALLY VULNERABLE | 1 | Advertised version is in an affected range. | | UNKNOWN | 3 | Missing or unrecognized version, prerelease, or failed check. |

Use --json for machine-readable output. patch_status is ok, potentially_vulnerable or unknown. Invalid arguments exit with code 2.

Versions below a listed upstream fix return potentially_vulnerable and exit 1. PHP 5.4–5.6, 7.0–7.4, 8.0 and 8.1 also return this warning, even with a higher patch number such as 8.1.35.

URL checks

URL mode reads X-Powered-By and Server, sends HEAD, and falls back to GET only when HEAD returns 405 or 501. It does not follow redirects or inspect response bodies. Missing or hidden PHP headers return UNKNOWN.

The upstream fixed releases are 8.2.35, 8.3.36, 8.4.27 and 8.5.12, from the October 21 PHP advisory. HTTP headers cannot tell whether the version contains a backported fix. Even OK only describes the advertised version - it doesn't verify the installation! The checker does not send exploit probes.

Contributing

OpenAI is not accepting external code contributions to this project. Bug reports and non-code feedback are welcome through GitHub issues. See CONTRIBUTING.md.

License

This project is licensed under the Apache License 2.0.

GitHub Stars & Activity

1,445Stars
144Forks
0Open issues
JavaScriptLanguage

GitHub Popularity

GitHub stars1,445
Forks144
Open issues0
Primary languageJavaScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Weekly boardrank #18 · ▲ 0 stars

Related GitHub Projects

1

jacke-pp / open-yoki

JavaScript★ 340⑂ 1
→
2

haydenschmitty / floorplan

JavaScript★ 322⑂ 31
→
3

HRuiCcc / RuiC-PoseAtlas

JavaScript★ 243⑂ 72
→
4

Humpalumps / Ultra-Water

JavaScript★ 207⑂ 31
→
5

Mieksido / surfcore

JavaScript★ 206⑂ 15
→
6

davemessew / AgentFlux

JavaScript★ 205⑂ 0
→
7

SAOS-3624 / dsh-video-storyboard

JavaScript★ 147⑂ 13
→
8
→

More Trending Repositories