Skip to main content
Glama
DansPK

Kali MCP

by DansPK

msfvenom

Generate custom Metasploit payloads and shellcode for reverse shells, meterpreter, and more. Specify payload, format, platform, and encoding to create standalone executables or scripts.

Instructions

Metasploit payload generator — creates shellcode and executables from payloads. Use for generating standalone payloads (reverse shells, meterpreter, etc.) in various formats. For AV-evasion with encoding, encryption, and template injection, use evasive_payload instead. Output: generated payload in the requested format, or list of available payloads/encoders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fmtNoOutput format: raw, exe, dll, python, c, csharp, powershell, hex, js, vba, etc.
archNoTarget architecture: x86, x64, armle, mipsle, ppc
optsNoAdditional msfvenom options
lhostNoListen host IP — where the payload connects back to
lportNoListen port — which port the payload connects to
encoderNoEncoder to use (e.g. 'x86/shikata_ga_nai'). Omit for no encoding.
outfileNoOutput file path to save generated payload
payloadYesPayload name (e.g. 'linux/x64/shell_reverse_tcp', 'windows/meterpreter/reverse_tcp')
badcharsNoBad characters to avoid (e.g. '\x00\x0a\x0d' for null, newline, carriage return)
platformNoTarget platform: windows, linux, android, osx, solaris
templateNoPath to executable to use as template (payload injected into it)
iterationsNoNumber of encoding iterations (default: 1). More iterations = larger payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior2/5

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

With no annotations, the description must carry the full burden of behavioral disclosure. It mentions the output ('generated payload in the requested format, or list of available payloads/encoders') but does not disclose any side effects (e.g., file creation, network activity, permissions required, or whether it is safe to run in a sandbox). For a tool that generates executables, this is a notable gap.

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?

The description is concise, with two main sentences and a brief output note. It is front-loaded with the purpose and efficiently covers the main use case and alternative. No fluff, though it could be slightly more structured, but it earns a high score for brevity and clarity.

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

Completeness2/5

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

With 12 parameters and no output schema, the description is thin. It does not explain how parameters interact (e.g., when lhost/lport are needed, what happens if outfile is omitted, or how to trigger the 'list of available payloads/encoders' behavior). The tool is complex, and the description leaves many operational details to inference, making it incomplete for reliable agent use.

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 baseline is 3. The description adds only high-level context (e.g., 'reverse shells, meterpreter' as examples of payloads) but does not clarify parameter interplay or provide any semantics beyond what the schema already documents. It does mention that output can be a list of payloads/encoders, which hints at some conditional behavior but not parameter-specific.

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

Purpose5/5

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

The description clearly states it is a 'Metasploit payload generator' that 'creates shellcode and executables from payloads', specifying the core function. It also distinguishes itself from the sibling 'evasive_payload' by explicitly stating that tool is for AV-evasion with encoding, encryption, and template injection, making its own scope clear.

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

Usage Guidelines5/5

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

The description explicitly says 'Use for generating standalone payloads (reverse shells, meterpreter, etc.) in various formats' and directly routes AV-evasion needs to 'evasive_payload instead'. This gives clear when-to-use and when-not-to-use guidance with a named alternative.

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