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.
curl -O https://raw.githubusercontent.com/akillness/jeo-skills/main/.agent-skills/artex/skills/php2shell/SKILL.mdgit clone --depth 1 https://github.com/akillness/jeo-skillsWrote 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.
[](https://agentmods.dev/skills/akillness/jeo-skills/php2shell)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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)
- Authorization: the target must be inside the task's authorized scope.
- 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).
- 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.
- Lab first: run chain 1 against the local lab (
lab/setup.shbuilds a vulnerable PHP 8.2 FPM+nginx environment) until the mechanism is understood, then one-shot the authorized target. - 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.
- 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)
- Start with the task's LFI finding: note the include path parameter and its constraints (prefix/suffix, truncation, wrapper filters).
- 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. - Inject PHP into the uploaded filename (not the file content):
verify_session_injection.pydemonstrates the full mechanics (session fixation via POST body PHPSESSID, raw filename storage, inclusion). - Race the session file's lifetime: include it through the LFI while the upload is still in flight (or keep the upload connection open).
- Verify RCE with a single marker command; record the request sequence as evidence.
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.
- 8d ago First seen · 64 lines · 99 tokens per session scan A 279eacb33f10
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.
php2shell compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| php2shellakillness/jeo-skills | Skill | 63 | today | MIT | A | 99 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 331k | 5d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |