Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on ldap --dc-list #42

Closed
NeffIsBack opened this issue Sep 25, 2023 · 1 comment
Closed

Crash on ldap --dc-list #42

NeffIsBack opened this issue Sep 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@NeffIsBack
Copy link
Contributor

Describe the bug
NetExec is crashing on nxc ldap [ip] -u user -p password --dc-list with logging enabled through config

To Reproduce
Enable logging in nxc.conf
Command: nxc ldap [ip] -u user -p password --dc-list
Resulted in:
image
Somehow it cant handle the line with the ip output from the dcs. The Message is reported as:

Message: 'LDAP        [IP]  389    [HOSTNAME]       [HOSTNAME.DOMAIN] ='
Arguments: ('[IP_FROM_ONE_DC',)

NetExec info

  • OS: Kali latest rolling
  • Version of nxc: latest
  • Installed from: upstream git with pipx
@NeffIsBack NeffIsBack added the bug Something isn't working label Sep 25, 2023
@NeffIsBack NeffIsBack self-assigned this Sep 25, 2023
@NeffIsBack
Copy link
Contributor Author

BUG-FIX
Replace nxc/protocols/ldap.py line 844 by:
self.logger.highlight(f"{name} = {colored(ip_address, host_info_colors[0])}")

Will commit the fix later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant