Exploitationlfirficommand-injectionexploitationshell

Shellfire

Shellfire is an exploitation shell designed for exploiting LFI, RFI, and command injection vulnerabilities. It provides a focused interface for leveraging these web vulnerabilities to gain shell access.

Description

Shellfire is a specialized tool in Kali Linux for exploiting Local File Inclusion (LFI), Remote File Inclusion (RFI), and command injection vulnerabilities. These are common web application flaws that can lead to remote code execution, making Shellfire valuable for penetration testers and security researchers targeting insecure file handling or input sanitization.

The tool offers an interactive shell environment tailored for these specific vulnerability types, streamlining the process of chaining exploits into practical access. It supports configuration loading and payload generation for different environments like PHP and ASP.NET, enhancing its utility in diverse web application scenarios.

Use cases include red team engagements where LFI/RFI paths are identified via reconnaissance, or command injection points discovered through fuzzing. Shellfire reduces the manual effort required to weaponize these findings into functional shells.

How It Works

Shellfire operates as an interactive exploitation shell that interfaces with vulnerable endpoints supporting LFI, RFI, or command injection. It sends crafted payloads to include remote files or inject commands, then interprets responses to build a command execution loop. The --generate option outputs standalone payloads for PHP or ASP.NET, which can be uploaded or triggered via the vulnerability. Debugging mode reveals the underlying queries sent to the target, while named configs allow pre-defined setups for repeated exploitation sessions.

Installation

bash
sudo apt install shellfire

Flags

-h, --helpshow this help message and exit
-c [CONFIG]load a named config on startup.
-denable debugging (show queries during execution)
--generate PAYLOADgenerate a payload to stdout. PAYLOAD can be "php" or "aspnet".
--versiondisplay version and exit.

Examples

Display the help message and usage information for the tool.
shellfire -h
Launch shellfire loading a named configuration file on startup for a specific target.
shellfire -c myconfig
Start shellfire with debugging enabled to show queries sent during execution.
shellfire -d
Generate a PHP payload to stdout for use in RFI or LFI exploitation.
shellfire --generate php
Generate an ASP.NET payload to stdout for command injection scenarios.
shellfire --generate aspnet
Display the version of shellfire and exit.
shellfire --version
Load a config and enable debugging for interactive exploitation session.
shellfire -c config1 -d
Updated 2026-04-16kali.org ↗