| 33 | self.consoles = Mock() |
| 34 | |
| 35 | class 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 | |
| 45 | class MockMsfRpcError(Exception): |
| 46 | pass |
no outgoing calls