MCPcopy Create free account
hub / github.com/GH05TCREW/MetasploitMCP / MockMsfRpcClient

Class MockMsfRpcClient

tests/test_helpers.py:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26# Create mock classes for MSF objects
27class MockMsfRpcClient:
28 def __init__(self):
29 self.modules = Mock()
30 self.core = Mock()
31 self.sessions = Mock()
32 self.jobs = Mock()
33 self.consoles = Mock()
34
35class MockMsfConsole:
36 def __init__(self, cid='test-console-id'):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected