exploit-lfi

Detect and exploit Local File Inclusion vulnerabilities in web applications.

277|29|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/crazyMarky/pentest-skills --skill exploit-lfi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exploit-lfi
Source: https://github.com/crazyMarky/pentest-skills/tree/main/exploit-lfi
Command: npx skills add https://github.com/crazyMarky/pentest-skills --skill exploit-lfi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps security professionals identify and exploit Local File Inclusion (LFI) vulnerabilities, allowing them to read sensitive files, gain code execution, and assess the impact of LFI flaws.

Core Features & Use Cases

  • LFI Detection: Automatically tests for LFI vulnerabilities using various techniques like path traversal and PHP wrappers.
  • File Reading: Reads sensitive files such as configuration files, system files, and logs.
  • RCE Exploitation: Attempts to achieve Remote Code Execution through methods like log poisoning and temporary file exploitation.
  • Use Case: When you suspect an LFI vulnerability on a web application, use this Skill to confirm its presence, read critical files like wp-config.php, and potentially gain a reverse shell.

Quick Start

Use the exploit-lfi skill to test the URL 'http://example.com/page.php?file=test' for Local File Inclusion vulnerabilities.

Frequently Asked Questions about exploit-lfi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect Local File Inclusion vulnerabilities in a web application?

Local File Inclusion (LFI) vulnerabilities are detected by automating path traversal tests and PHP wrapper exploits on target web application URLs to read sensitive system files. This Skill automates testing for these flaws using custom Python scripts and curl requests.

Can I achieve remote code execution through log poisoning with an LFI exploit?

Remote code execution (RCE) through log poisoning is achievable by injecting malicious payloads into server logs and including those logs via an LFI vulnerability. This Skill automates log poisoning and temporary file exploitation techniques to attempt gaining a reverse shell.

What is the best way to test a URL for path traversal and PHP wrapper exploits?

The best way to test a URL for path traversal and PHP wrapper exploits is to automate the injection of traversal sequences and wrapper payloads into URL parameters. This Skill processes target URLs by systematically applying various LFI techniques to identify vulnerable parameters.

How do I read sensitive files like wp-config.php using a local file inclusion flaw?

To read sensitive files like wp-config.php using a local file inclusion flaw, you exploit the vulnerable file parameter to traverse directories and target the file path. This Skill automates reading configuration files, system files, and logs once an LFI vulnerability is confirmed.

Does this LFI exploitation method require installing dependencies like requests?

This LFI exploitation method requires the Python `requests` library to handle HTTP interactions during vulnerability testing. You need a Python environment with this dependency installed to run the custom scripts that automate path traversal and wrapper exploit payloads.

Why does my LFI payload fail to read sensitive system files on a target URL?

LFI payloads fail to read sensitive system files when the target application filters traversal sequences or blocks PHP wrapper protocols. This Skill helps identify these constraints by testing multiple LFI techniques, though applications with strict input validation may limit exploitation success.