File inclusion: local and remote
Inclusion resolves a path on the server; the reachable files and wrappers bound what the parameter can do.
File Inclusion
Inclusion resolves the requested value as a path on the server. The wrappers available in the runtime and the effective include path bound which files are reachable; reading one file does not establish write access or code execution.
Local File Inclusion (LFI)
Files worth retrieving:
- /etc/hosts
- /etc/passwd
- C:/windows/system32/drivers/etc/hosts
Remote File Inclusion (RFI)
Protocols to test:
- HTTP(S)
- SMB (combine with Responder for example)
- FTP
Provenance and confidence
- Version
- 1
- Sources reviewed
- 2026-11-23
- Confidence
- medium — Translated from the legacy RTFM page on 2026-11-23; commands and claims were not independently re-verified.
Also searched as: lfi, rfi, file inclusion, inclusion de fichier, inclusion locale, inclusion distante