Skip to content

Conversation

@DanMcInerney
Copy link

@DanMcInerney DanMcInerney commented Mar 3, 2018

The console interactions were messed up.

client.consoles.list used to return:
{u'consoles': [{u'busy': False, u'id': u'2', u'prompt': u'msf > '}]}

This is wrong because when you call client.consoles.console('2') you get an error saying that console doesn't exist. This is because:

s = self.list
if cid is None:
    return MsfConsole(self.rpc)
if cid not in s:
    raise KeyError('Console ID (%s) does not exist' % cid)
else:
    return MsfConsole(self.rpc, cid=cid)

You can see that s will just equal 'console' and not the id. I fixed this.

@allfro
Copy link
Owner

allfro commented Aug 31, 2021

Please check the latest merge to see if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants