OP

openai/php2shell-checker

Deployment & DevOps

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

1.4천 stars 품질 61 트렌드 74Apache-2.0

웹 사이트의 PHP 헤더 또는 로컬 설치에서 버전 기반 PHP2Shell 경고를 가져옵니다.

개요

웹 사이트의 PHP 헤더 또는 로컬 설치에서 버전 기반 PHP2Shell 경고를 가져옵니다. phpcheck-server를 사용하면 서버 액세스, 또는 phpcheck-url을 사용할 수 있습니다. 기계 읽기 쉬운 산출을 위한 사용 --json. patch status는 ok, potentially vulnerable 또는 알 수 없습니다. invalid 인수 종료 코드 2. 나열된 업스트림 수정 아래의 버전은 잠재적으로 vulnerable 및 종료 1. PHP 5.4–5.6, 7.0–7.4, 8.0 및 8.1 또한이 경고를 반환, 심지어 더 높은 패치 번호와 같은 8.1.35. URL 모드는 X-Powered-By 및 Server를 읽고, HEAD를 보내며, HEAD가 405 또는 501을 반환할 때만 얻게 됩니다. 그것은 리디렉션을 따르거나 응답 몸을 검사하지 않습니다. 미스 또는 숨겨진 PHP 헤더 반환 UNKNOWN. 업스트림 고정 릴리스는 8.2.35, 8.3.36, 8.4.27 및 8.5.12, 10 월 21 PHP 자문. HTTP 헤더는 backported 수정을 포함 여부를 말할 수 없습니다. OK는 광고 된 버전을 설명합니다 - 설치를 확인하지 않습니다!

개요(AI 번역)

웹 사이트의 PHP 헤더 또는 로컬 설치에서 버전 기반 PHP2Shell 경고를 가져옵니다.

두 능력을 설치하려면 Codex를 요청하십시오.

서버가 있는 경우 phpcheck-server 사용 액세스, 또는 phpcheck-url 당신은 URL이있을 때:

직접 실행

웹 사이트 확인:

결과

| 결과 | 종료 코드 | 의미 | 인포메이션 | OK | 0 | 업스트림 고정 릴리스에 대응하고 있습니다. | | POTENTIALLY VULNERABLE | 1 | 사용 가능한 버전은 영향을 받습니다. | | UNKNOWN | 3 | 미스링 또는 인식되지 않은 버전, 선출, 또는 실패한 체크. |

--json] 기계식 출력을 위한 사용. patch_status]는 ok], potentially_vulnerable 또는 unknown]. 코드 2로 잘못된 인수 종료.

나열된 업스트림 수정 반환 아래의 버전 potentially_vulnerable 과 종료 1. PHP 5.4–5.6, 7.0–7.4, 8.0 및 8.1 또한이 경고를 반환, 심지어 8.1.35와 같은 더 높은 접속 번호로.

URL 체크

URL 모드는 X-Powered-By과 Server]을 읽고, HEAD]을 보내고, 다시 GET] HEAD] 405 또는 501을 반환합니다. 그것은 리디렉션을 따르지 않습니다 또는 응답 몸을 검사하십시오. 미스 또는 숨겨진 PHP 헤더 반환 UNKNOWN].

업스트림 고정 릴리즈는 8.2.35, 8.3.36, 8.4.27 및 8.5입니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

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에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add openai/php2shell-checker
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →