Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] smb_brute module crashing when called after database is populated #1147

@pUrGe12

Description

@pUrGe12

Running the smb_brute module standalone works well when service discovery is skipped:

python3 nettacker.py -i target -m smb_brute -d

but running the same after a port_scan is crashing

python3 nettacker.py -i target -m smb_brute

This is the stack traceback

Exception in thread owasp.org -> smb_brute:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "~/nettacker/nettacker/core/app.py", line 279, in scan_target
    module.load()
  File "~/nettacker/nettacker/core/module.py", line 105, in load
    step, {"port": self.discovered_services[payload["library"]]}
KeyError: 'smb'

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions