Commit Graph

21 Commits

Author SHA1 Message Date
g0t mi1k 7da73d98fe Add --debug flag to be more verbose 2026-02-05 09:14:45 +00:00
g0t mi1k 0e64f3f02d parse args before running
Otherwise for `--help` to work, need to have a server already running
2026-02-05 09:12:47 +00:00
cbdmaul 1aec6127e6 Fix timeout handling and add debugging for MCP tools
- Add RPC_CALL_TIMEOUT (30s) constant for RPC operations
- Wrap list_exploits and list_payloads with asyncio.wait_for to prevent hanging
- Add timeout handling to list_active_sessions and list_listeners
- Add timeout handling to health check endpoint
- Improve error messages with specific timeout information
- Add debug logging for RPC calls to help diagnose communication issues
- Add check_msf_connection() helper function for connection status
- Add comprehensive timeout error handling with user-friendly messages

Fixes issue where list_exploits call would hang for 3+ minutes when
Metasploit server is slow or unresponsive. Now fails fast with clear
error message after 30 second timeout.
2025-08-17 13:16:10 -04:00
cbdmaul fd4911a3c6 Merge branch 'main' of https://github.com/GH05TCREW/MetasploitMCP
merge
2025-07-23 16:57:58 -04:00
cbdmaul fe2eeb083e minor fixes 2025-07-23 16:57:46 -04:00
Masic cb1eb5b011 Update MetasploitMCP.py variables 2025-07-14 03:13:24 -06:00
DullJZ 275bbd36c2 Prevent repeated switching of shell modes. 2025-07-14 08:05:08 +00:00
DullJZ 675b7f2f9b Support shell switch in meterpreter session 2025-07-14 07:18:16 +00:00
GH05TCREW c24a645195 Remove timeout parameter from session.run_with_output(command) 2025-05-29 06:39:19 -06:00
GH05TCREW a58d087f47 Set synchronous execution as default 2025-05-28 21:19:14 -06:00
GH05TCREW 9c9df68d30 Update payload generation to set runoptions individually 2025-05-19 16:07:50 -06:00
GH05TCREW eada4c3a93 Implement proper ASGI message handling for SSE 2025-04-29 00:06:14 -06:00
GH05TCREW 654c677db5 Add missing POST endpoint handler for MCP SSE transport messages 2025-04-28 23:43:06 -06:00
GH05TCREW 944c8f385f Fix SSE transport TypeError and add explicit mode selection 2025-04-27 03:52:08 -06:00
GH05TCREW 479393c504 Remove unnecessary tools and update readme 2025-04-20 07:05:06 -06:00
GH05TCREW 59d83c1531 Fix run_exploit path handling and validation 2025-04-16 17:01:39 -06:00
Masic 649e06d850 Update MetasploitMCP.py to import subprocess 2025-04-16 15:21:12 -06:00
GH05TCREW 3b17f2e333 Add new tool to execute local programs for payload testing 2025-04-15 18:05:20 -06:00
GH05TCREW 1468019cd1 Implement saving of generated payloads to local filesystem 2025-04-15 16:06:25 -06:00
GH05TCREW 385d3d9a13 Implement RPC payload generation and improve tool reliability 2025-04-14 18:14:53 -06:00
GH05TCREW 92f750522f Add initial implementation of Metasploit MCP Server 2025-04-14 01:58:59 -06:00