EntySec / HatSploit

Modular penetration testing platform that enables you to write, test, and execute exploit code.
https://hatsploit.com
MIT License
277 stars 62 forks source link

Module `info` command produces a traceback #92

Closed naltun closed 1 year ago

naltun commented 2 years ago

Describe the bug

When using the auxiliary/generic/scanner/port_scanner module, running info produces a traceback, erroring with:

'Show' object has no attribute 'show_module_information'`

To Reproduce

  1. Start hsf
  2. Use the module auxiliary/generic/scanner/port_scanner
  3. Run info

Expected behavior

The module's info is printed to stdout.

Desktop (please complete the following information):

Additional context

Terminal output:

(hsf)> use auxiliary/generic/scanner/port_scanner
(hsf: auxiliary: Port Scanner)> info
[-] An error occured: 'Show' object has no attribute 'show_module_information'!
  File "/home/vagrant/.local/bin/hsf", line 8, in <module>
    sys.exit(cli())
  File "/home/vagrant/.local/lib/python3.10/site-packages/hatsploit/__init__.py", line 40, in cli
    runtime.catch(hsf.cli)
  File "/home/vagrant/.local/lib/python3.10/site-packages/hatsploit/lib/runtime.py", line 75, in catch
    function(*args)
  File "/home/vagrant/.local/lib/python3.10/site-packages/hatsploit/__main__.py", line 183, in cli
    self.launch()
  File "/home/vagrant/.local/lib/python3.10/site-packages/hatsploit/__main__.py", line 85, in launch
    self.console.shell()
  File "/home/vagrant/.local/lib/python3.10/site-packages/hatsploit/core/base/console.py", line 97, in shell
    self.runtime.catch(self.shell_execute)
  File "/home/vagrant/.local/lib/python3.10/site-packages/hatsploit/lib/runtime.py", line 89, in catch
    traceback.print_stack(file=sys.stdout)
enty8080 commented 1 year ago

@naltun Bug has been fixed.

(hsf)> use auxiliary/generic/scanner/port_scanner
(hsf: auxiliary: Port Scanner)> info
[i] Name: Port Scanner
[i] Module: Port Scanner
(hsf: auxiliary: Port Scanner)>
enty8080 commented 1 year ago

@naltun Hi. I didn't find any place where I can write to you. I wiped my phone and can't access Signal. And as a result, I lost your phone. Can you please write me in telegram - @enty8080?