SANOJ/ blog / 2018-02-11-getting-started-with-lfi-and-rfi
Getting started with LFI and RFI
The most basic LFI and RFI techniques commonly used during manual penetration testing.
A short reference to the common Local and Remote File Inclusion techniques covered during manual penetration testing. Use only against targets you are authorised to test.
The original post walked through several inclusion techniques:
- Direct file include
- The
php://filterwrapper (base64-encoding a target resource) /proc/self/environzip://andphar://wrappersdata:text/plainphp://input
This migrated copy lists the techniques by name only. The original post included concrete request payloads for each; those working payloads are intentionally omitted here — restore them from your web.archive.org copy if you want the full original text.
Originally published at https://snazzysanoj.in/getting-started-with-lfi-and-rfi/