s0ld13rr/pentestcode/lfi-traversal
Claude Code and agent skill by s0ld13rr/pentestcode
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install s0ld13rr/pentestcode/lfi-traversalSKILL.md
The same SKILL.md was published earlier as lza6/armor-piercing-system-prompts/lfi-traversal.
Path Traversal / LFI
When this fires
A param selects a file/page/template/language/download, or a download/include endpoint reflects file content.
Detect
root:x:0:0 back = traversal/LFI. Windows: ..\..\..\windows\win.ini.
Decide
- Reads only (traversal) → escalate to source disclosure + secrets.
- PHP
include()(LFI) → escalate to RCE via wrappers/poisoning. - Extension appended (
page.php) →php://filter(below) or null-byte on old PHP; try?page=../../etc/passwd%00(PHP<5.3.4).
Exploit → PROVE IMPACT
Proof 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.
Tooling
nuclei -tags lfi,traversal; ffuf with an LFI wordlist on the param; php_filter_chain_generator for filter-only cases.
False positives / pitfalls
- WAF/framework normalizes
../→ try encodings,....//, absolute paths, or a different param. - App sandboxes to a base dir → look for a symlink/upload you control to include.
- 200 with generic page ≠ read — confirm the actual file bytes are in the response.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/web/lfi-traversal/SKILL.md
Popularity
- Repository stars
- 861
- Repository forks
- 139
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/s0ld13rr/pentestcode/lfi-traversal)