check_module
Check available exploit modules for netexec protocols like RDP, LDAP, SMB, and SSH to select appropriate modules for penetration testing before execution.
Instructions
Call this before before using a module to check available exploit modules for a certain netexec supported protocol {rdp,ldap,winrm,smb,ssh,nfs,ftp,wmi,mssql,vnc} and based on the description of the modules chose one to perform
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": {
"prot": "<prot>"
},
"name": "check_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prot | Yes |
Implementation Reference
- src/pentestmcp/server.py:321-322 (handler)The handler function for the 'check_module' tool. It takes a protocol string and runs the 'netexec <prot> -L' command using the run_command helper to list available modules.
def check_module(prot:str): return run_command(["netexec",prot,'-L']) - src/pentestmcp/server.py:320-320 (registration)Registers the 'check_module' tool with the MCP server using the @mcp.tool decorator, specifying the name and description.
@mcp.tool(name="check_module",description="Call this before before using a module to check available exploit modules for a certain netexec supported protocol {rdp,ldap,winrm,smb,ssh,nfs,ftp,wmi,mssql,vnc} and based on the description of the modules chose one to perform")