pywhisker icon indicating copy to clipboard operation
pywhisker copied to clipboard

Executing from pipx fails

Open Mojo8898 opened this issue 4 months ago • 1 comments

Errors persist when executing from pipx.

From pipx:

pywhisker -d example.com -u example_user -p example_pass --target example_target --action add

Traceback (most recent call last):
  File "/home/kali/.local/share/pipx/venvs/pywhisker/lib/python3.12/site-packages/pywhisker/pywhisker.py", line 819, in main
    shadowcreds = ShadowCredentials(ldap_server, ldap_session, target_samname, target_domain)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/.local/share/pipx/venvs/pywhisker/lib/python3.12/site-packages/pywhisker/pywhisker.py", line 258, in __init__
    logger.debug('Initializing domainDumper()')
    ^^^^^^
NameError: name 'logger' is not defined. Did you mean: 'Logger'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kali/.local/bin/pywhisker", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/kali/.local/share/pipx/venvs/pywhisker/lib/python3.12/site-packages/pywhisker/pywhisker.py", line 839, in main
    logger.error(str(e))
  File "/home/kali/.local/share/pipx/venvs/pywhisker/lib/python3.12/site-packages/pywhisker/pywhisker.py", line 733, in error
    console.print("{}[!]{} {}".format("[bold red]", "[/bold red]", message), highlight=False)
    ^^^^^^^
NameError: name 'console' is not defined. Did you mean: 'Console'?

Mojo8898 avatar Oct 15 '24 20:10 Mojo8898