yaklang avatar

Path Traversal Lfi

Expert path traversal and LFI playbook covering encoding bypasses, PHP wrapper abuse, and log poisoning to RCE.

CCM score
60 of 100
skills.sh installs
4.1K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers traversal encoding variants, target file lists for Linux and Windows, and PHP LFI-to-RCE escalation techniques
  • Includes filter bypass checklists for stripped ../ sequences, plus php://filter, php://input, and data:// wrapper payloads
  • Distinguishes read-only path traversal from LFI, where included PHP files are executed rather than just returned
  • Designed for security testers assessing file paths, download endpoints, include operations, and archive extraction

Install

$ npx -y skills add yaklang/hack-skills --skill path-traversal-lfi -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SKILL: Path Traversal / Local File Inclusion (LFI) — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert path traversal and LFI techniques. Covers encoding bypass sequences, OS differences, filter bypass, PHP wrapper exploitation, log poisoning to RCE, and the critical distinction between path traversal (read only) vs LFI (execution). Base models miss encoding chains and RCE escalation paths.

0. RELATED ROUTING

Before deep exploitation, you can first load:

  • upload insecure files when the primary attack surface is an upload workflow rather than an include or read primitive
  • ghost-bits-cast-attack when the target is a Java backend (Spring, Jetty, Undertow, Vert.x) and standard ../, %2e%2e, %252e chains are WAF-blocked — Ghost Bits substitutes . with 阮 (U+962E) and / with 阯 (U+962F), re-enabling traversal through Spring CVE-2025-41242 and Jetty %2> hex-folding

First-pass traversal chains

../etc/passwd
../../../../etc/passwd
..%2f..%2f..%2fetc%2fpasswd
..%252f..%252f..%252fetc%252fpasswd
..\\..\\..\\windows\\win.ini

1. CORE CONCEPT

Details

Repository
github.com/yaklang/hack-skills
Category
Security
First seen
May 16, 2026

More from yaklang/hack-skills

All 102

Similar to Path Traversal Lfi

More Security