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

Class MockMsfConsole

conftest.py:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 self.jobs.list.return_value = {}
69
70 class MockMsfConsole:
71 def __init__(self, cid='test-console'):
72 self.cid = cid
73
74 def read(self):
75 return {'data': '', 'prompt': 'msf6 > ', 'busy': False}
76
77 def write(self, command):
78 return True
79
80 class MockMsfRpcError(Exception):
81 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected