msfvenom_generate
Generate reverse shell payloads with msfvenom, specifying payload type, listener IP, port, and output format. Saves the artifact securely for use in penetration testing.
Instructions
Generate a payload using msfvenom. Saved to ~/kali-mcp/artifacts/ (chmod 600). payload: e.g. 'linux/x64/meterpreter/reverse_tcp' lhost: listener IP address lport: listener port format: elf, exe, raw, php, py, rb, sh, dll, jar, war filename: output filename (auto-generated if empty)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payload": "<payload>",
"lhost": "<lhost>",
"lport": "<lport>"
},
"name": "msfvenom_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lhost | Yes | ||
| lport | Yes | ||
| format | No | elf | |
| payload | Yes | ||
| filename | No |