DanMcInerney / pymetasploit3

Automation library for Metasploit
MIT License
373 stars 92 forks source link

TypeError: 'bool' object is not subscriptable when using "scanner/msmail/onprem_enum" #69

Closed Mebrahem1 closed 3 years ago

Mebrahem1 commented 3 years ago
>>> auxiliary = client.modules.use('auxiliary', 'scanner/msmail/onprem_enum')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kali/.local/lib/python3.9/site-packages/pymetasploit3/msfrpc.py", line 1669, in use
    return AuxiliaryModule(self.rpc, mname)
  File "/home/kali/.local/lib/python3.9/site-packages/pymetasploit3/msfrpc.py", line 1536, in __init__
    super(AuxiliaryModule, self).__init__(rpc, 'auxiliary', auxiliary)
  File "/home/kali/.local/lib/python3.9/site-packages/pymetasploit3/msfrpc.py", line 1268, in __init__
    if self._moptions[o]['required']:
TypeError: 'bool' object is not subscriptable
Mebrahem1 commented 3 years ago

for this "scanner/msmail/onprem_enum" i installed golang and it's worked!