jeo-skills: Skill for Claude Code

.agent-skills/artex/skills/php2shell/SKILL.md

php2shell is a skill for Claude Code, Codex from akillness/jeo-skills. It costs 99 tokens per session (905 once invoked), scanned A, original, MIT.

A controlled security-testing procedure for checking whether a specific PHP file-inclusion flaw can be turned into code execution. File inclusion is when a web application is tricked into loading an unintended file; code execution means running commands on the server.

In plain words
What is it for?
Use it on authorized PHP targets with a suspected local file inclusion issue to classify exposure and verify the issue with the supplied proof of concept.
Why use it?
It helps determine whether an existing finding is exploitable while requiring authorization, passive checks and lab testing before live assessment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is akillness/jeo-skills's own configuration. It tells Claude Code and Codex how to work on jeo-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything jeo-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to akillness/jeo-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/akillness/jeo-skills/main/.agent-skills/artex/skills/php2shell/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/akillness/jeo-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php2shell

README.md
[![agentmods](https://agentmods.dev/badge/skills/akillness/jeo-skills/php2shell/github.svg)](https://agentmods.dev/skills/akillness/jeo-skills/php2shell)
Your own site
<a href="https://agentmods.dev/skills/akillness/jeo-skills/php2shell"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/php2shell/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php2shell

Your own site · 80×15
<a href="https://agentmods.dev/skills/akillness/jeo-skills/php2shell"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/php2shell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.00905
Opus 5.5 $0.00040 $0.00362
Sonnet 5.5 $0.00020 $0.00181
Haiku 4.5 $0.00010 $0.00090

Measured 8d ago against content hash 279eacb33f10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

php2shell scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent-skills/artex/skills/php2shell/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

php2shell: session.upload_progress LFI-to-RCE (CVE-2026-109618/109619)

Under an authorized engagement only. This skill upgrades an existing LFI/unsafe-include finding on a PHP target into RCE, or classifies the target as not affected, using the vendored PoCs under scripts/poc/php2shell/ (upstream: ikow/php2shell-poc, MIT; see the LICENSE there).

Hard gates (read before touching any target)

  1. Authorization: the target must be inside the task's authorized scope.
  2. Program policy first: many programs exclude or do not pay for recently-patched third-party/framework zero-days within ~14 days of the patch release. PHP patched these in 8.2.35/8.3.36/8.4.27/8.5.12 (2026-10-21). CHECK the program's policy on component zero-days BEFORE testing a live target, and reflect the policy in how the finding is claimed (often "reportable, not payable" or payable only after the clause lapses).
  3. Detection before exploitation: fingerprint passively first (response headers, error pages, X-Powered-By). Only targets on PHP 5.4.0-8.5.11 (any build with session.upload_progress enabled, the default) are candidates.
  4. Lab first: run chain 1 against the local lab (lab/setup.sh builds a vulnerable PHP 8.2 FPM+nginx environment) until the mechanism is understood, then one-shot the authorized target.
  5. Chains 2 and 3 (var_destroy UAF, serializer mismatch) are LAB-ONLY: never fire memory-corruption or serializer-confusion primitives at a remote target. Detection of their preconditions is fine.
  6. One-shot verification on the target: prove execution once (a marker echo), capture evidence, stop. No persistence, no further exploration through the shell.

Chain 1 workflow (session file injection + LFI -> RCE)

  1. Start with the task's LFI finding: note the include path parameter and its constraints (prefix/suffix, truncation, wrapper filters).
  2. Confirm the session path is reachable through that LFI: with session.upload_progress.enabled=On (default), an in-flight multipart POST with an attacker-named file field writes a session file under the session save path containing the raw filename.
  3. Inject PHP into the uploaded filename (not the file content): verify_session_injection.py demonstrates the full mechanics (session fixation via POST body PHPSESSID, raw filename storage, inclusion).
  4. Race the session file's lifetime: include it through the LFI while the upload is still in flight (or keep the upload connection open).
  5. Verify RCE with a single marker command; record the request sequence as evidence.

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 64 lines · 99 tokens per session scan A 279eacb33f10

Subscribe to this mod's changes

php2shell is a skill published in the GitHub repository akillness/jeo-skills (63 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 905 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

php2shell compared with skills from other repositories

php2shell next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
php2shellakillness/jeo-skillsSkill63todayMITA99Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k5d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code