1

I want to create test case about LFI (Local File Inclusion) but I couldn't. Old servers can include /etc/passwd file with php's include file

For example:

include ("/etc/passwd");

This prints passwd file to screen but when I tried it in ubuntu 16.04's default apache2 service it can not include this file it blocks somehow, it just includes files in the same directory.

I tried to edit php-mods but I could not find the solution.

How can I import /etc/passwd or /proc/self/* files.

Thanks.

Olaf Kock
  • 46,930
  • 8
  • 59
  • 90
Berkay Yıldız
  • 440
  • 3
  • 14

0 Answers0