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

Class MockMsfConsole

tests/test_tools_integration.py:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 self.jobs.list = Mock(return_value={})
61
62class MockMsfConsole:
63 def __init__(self, cid='test-console-id'):
64 self.cid = cid
65 self._command_history = []
66
67 def read(self):
68 return {'data': 'msf6 > ', 'prompt': '\x01\x02msf6\x01\x02 \x01\x02> \x01\x02', 'busy': False}
69
70 def write(self, command):
71 self._command_history.append(command.strip())
72 return True
73
74class MockMsfModule:
75 def __init__(self, fullname):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected