Filter Shell is a wrapper CLI tool built on top of php_filter_chain_generator by Synacktiv. It exploits Local File Inclusion (LFI) vulnerabilities via PHP filter chaining to execute commands remotely without requiring file uploads. See LFI2RCE via PHP Filters.
- Interactive shell interface for command execution through LFI vulnerabilities
- Supports command checking with URL length estimation
- Supports raw filter chain payload generation
- Basic remote OS detection (Linux/Windows)
- Basic help and usability commands
- Ruby (tested on Ruby 2.7+)
- Python 3
- Command-line tools:
curl,git,grep,xargs(usually pre-installed on Linux/macOS) - Internet connection for cloning the dependency repository
- Clone or download this repository:
git clone https://github.com/yourusername/filter-shell.git
cd filter-shellruby filter_shell.rb 'http://TARGET:PORT/PATH?PARAM='