Skip to main content
Glama
1mr0-tech

PwnBridge

Official
by 1mr0-tech

metasploit_exec

Execute a Metasploit Framework module non-interactively on a remote Kali machine via msfconsole, running one module with options and exiting cleanly for authorized penetration testing.

Instructions

Execute a Metasploit Framework module non-interactively on the remote Kali machine via msfconsole. Runs a single module with provided options and exits cleanly. Only for authorized penetration testing engagements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
moduleYesFull module path. Example: "exploit/multi/handler" or "auxiliary/scanner/portscan/tcp"
optionsYesModule options as key-value pairs. Example: {"RHOSTS": "192.168.1.10", "RPORT": "445"}
payloadNoPayload to use with exploit modules. Example: "windows/x64/meterpreter/reverse_tcp"
run_commandNo"run" or "exploit" executes the module, "check" only tests if the target is vulnerablerun

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that execution is non-interactive, runs a single module, and exits cleanly, which is useful behavioral context. However, it says nothing about required privileges, side effects on the target, timeout behavior, or whether the output is captured, leaving materially important traits undisclosed for a remote exploitation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action and execution context, followed by a scoping constraint. Efficient and free of filler, though the final authorization sentence could arguably be considered boilerplate rather than tool-selection-relevant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter remote exploitation tool with no annotations and no output schema, the description covers purpose, method, and authorization scope. It omits operational expectations an agent would need to call it safely and correctly, such as session handling, expected output, and error behavior. Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all four parameters including examples and the run_command enum. The description adds no parameter-level detail beyond what the schema provides. Per the rubric baseline, this is a 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Execute') and resource ('Metasploit Framework module') plus the execution context (non-interactively on remote Kali via msfconsole). It is distinguishable from siblings like nmap_scan or sqlmap_scan, but it does not explicitly contrast with shell_exec, which could also run arbitrary commands. Clear purpose, but sibling differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides the authorization constraint ('Only for authorized penetration testing engagements') and specifies single-module non-interactive execution, implying when to use it. However, it gives no explicit when-to-use vs alternatives guidance, such as when to pick this over shell_exec or sqlmap_scan. Usage context is implied but not fully delineated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.