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

Class MockMsfConsole

tests/test_helpers.py:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 self.consoles = Mock()
34
35class MockMsfConsole:
36 def __init__(self, cid='test-console-id'):
37 self.cid = cid
38
39 def read(self):
40 return {'data': 'test output', 'prompt': 'msf6 > ', 'busy': False}
41
42 def write(self, command):
43 return True
44
45class MockMsfRpcError(Exception):
46 pass

Calls

no outgoing calls