command-injection

Guide OS command injection exploitation with payload generation and blind data exfiltration.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill command-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-injection
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/web/command-injection
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill command-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps penetration testers identify and exploit vulnerabilities where user input is passed unsafely to an operating system shell, enabling arbitrary command execution.

Core Features & Use Cases

  • OS Command Injection Exploitation: Guides users through identifying and exploiting command injection flaws in web applications.
  • Payload Generation: Provides a comprehensive list of operators and bypass techniques for various injection scenarios (Linux/Windows, quoted/unquoted, space/character filters).
  • Blind Injection Handling: Offers strategies for time-based and out-of-band (OOB) data exfiltration when command output is not directly visible.
  • Use Case: A penetration tester discovers a parameter in a web application that seems to accept shell commands. They use this Skill to test for injection, bypass filters, and ultimately execute commands like id or whoami on the target server.

Quick Start

Use the command-injection skill to test for OS command injection in the 'ip' parameter of the URL 'http://example.com/ping?ip=127.0.0.1'.

Frequently Asked Questions about command-injection

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

FAQPage Schema
How do I exploit OS command injection vulnerabilities during a penetration test?

To exploit OS command injection, you identify unsafely handled user input passed to an operating system shell and inject shell operators to execute arbitrary commands. This Skill guides you through testing parameters and executing commands on target servers.

What is blind command injection and how does data exfiltration work?

Blind command injection occurs when command output is not directly visible in the application response. You can exfiltrate data using time-based delays or out-of-band (OOB) methods to infer execution success and extract information from the target server.

How can I bypass character and space filters when testing for RCE?

You can bypass filters during remote code execution testing by applying specific shell operators, quoting techniques, and encoding methods. This Skill provides payload generation strategies for both Linux and Windows systems to circumvent input restrictions.

Does the command-injection skill support both Linux and Windows exploitation?

Yes, the command-injection skill supports exploiting vulnerabilities on both Linux and Windows systems. It provides tailored bypass techniques and payload generation strategies for various injection scenarios across different operating systems.

Do I need to understand shell operators to use this command injection tool?

Yes, understanding shell operators, quoting, and encoding is required for successful command injection exploitation. This prerequisite knowledge is necessary to identify injection points and effectively generate payloads that execute arbitrary OS commands.