A vulnerable server for learning local file inclusion exploitation
Only run this lab in an isolated, controlled environment (VM, container, or isolated network). Do not run on production or public-facing hosts.
- Linux system (Debian/Ubuntu/Kali recommended for examples)
- apache2 web server
- PHP (if the lab uses PHP files)
By working on this challenge, you’ll learn to:
Identify LFI vulnerabilities
Exploit log poisoning through LFI
Chain LFI with file uploads to get RCE!
-
Clone this repository:
git clone https://github.com/r3dpower/LocalFunInclusion.git cd LocalFunInclusion -
Copy the lab files into your Apache document root (example for Debian/Ubuntu):
sudo mkdir -p /var/www/html/shoppix sudo cp -r * /var/www/html/shoppix/ sudo chown -R www-data:www-data /var/www/html/shoppix -
Enable read permissions on /var/log/apache2/access.log (for log poisoning):
sudo chown root:www-data /var/log/apache2/access.log sudo chmod 0640 /var/log/apache2/access.log
Happy hacking! 🐱💻