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

Method __init__

conftest.py:56–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54
55 class MockMsfRpcClient:
56 def __init__(self):
57 self.modules = Mock()
58 self.core = Mock()
59 self.sessions = Mock()
60 self.jobs = Mock()
61 self.consoles = Mock()
62
63 # Default return values
64 self.core.version = {'version': '6.3.0'}
65 self.modules.exploits = []
66 self.modules.payloads = []
67 self.sessions.list.return_value = {}
68 self.jobs.list.return_value = {}
69
70 class MockMsfConsole:
71 def __init__(self, cid='test-console'):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected