mirror of
https://github.com/GH05TCREW/MetasploitMCP.git
synced 2026-07-01 14:28:33 -04:00
1aec6127e6
- 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.
7 lines
128 B
Plaintext
7 lines
128 B
Plaintext
# Testing dependencies for MetasploitMCP
|
|
pytest>=7.0.0
|
|
pytest-asyncio>=0.21.0
|
|
pytest-mock>=3.10.0
|
|
pytest-cov>=4.0.0
|
|
mock>=4.0.3
|