get_exploit_info
Retrieve detailed technical specifications and usage parameters for specific Metasploit exploits to support authorized penetration testing and security assessment workflows.
Instructions
Get detailed information about a specific exploit
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exploitPath | Yes | Full exploit path (e.g., 'exploit/windows/smb/ms17_010_eternalblue') |
Input Schema (JSON Schema)
{
"properties": {
"exploitPath": {
"description": "Full exploit path (e.g., 'exploit/windows/smb/ms17_010_eternalblue')",
"type": "string"
}
},
"required": [
"exploitPath"
],
"type": "object"
}
Implementation Reference
- src/index.ts:328-362 (handler)Handler logic for the 'get_exploit_info' tool. Extracts the exploitPath argument, executes the msfconsole 'info' command on it, and returns the detailed exploit information as a JSON-formatted text response, with error handling.case "get_exploit_info": { const { exploitPath } = args as { exploitPath: string }; try { const info = await executeMsfCommand([`info ${exploitPath}`]); return { content: [ { type: "text", text: JSON.stringify( { success: true, exploitPath, info, }, null, 2 ), }, ], }; } catch (error: any) { return { content: [ { type: "text", text: JSON.stringify({ success: false, error: error.message, }), }, ], }; } }
- src/index.ts:112-121 (schema)Input schema for the 'get_exploit_info' tool, defining the required 'exploitPath' parameter as a string.inputSchema: { type: "object", properties: { exploitPath: { type: "string", description: "Full exploit path (e.g., 'exploit/windows/smb/ms17_010_eternalblue')", }, }, required: ["exploitPath"], },
- src/index.ts:109-122 (registration)Tool registration object for 'get_exploit_info' in the tools array, used for listing available tools via ListToolsRequestSchema.{ name: "get_exploit_info", description: "Get detailed information about a specific exploit", inputSchema: { type: "object", properties: { exploitPath: { type: "string", description: "Full exploit path (e.g., 'exploit/windows/smb/ms17_010_eternalblue')", }, }, required: ["exploitPath"], }, },