Skip to content

Fix: add /etc/hosts resolution and skip Kerberos SRV lookup for NTLM …#251

Open
DaddyBigFish wants to merge 1 commit into
dirkjanm:bloodhound-cefrom
DaddyBigFish:fix/proxy-socks-zscaler-support
Open

Fix: add /etc/hosts resolution and skip Kerberos SRV lookup for NTLM …#251
DaddyBigFish wants to merge 1 commit into
dirkjanm:bloodhound-cefrom
DaddyBigFish:fix/proxy-socks-zscaler-support

Conversation

@DaddyBigFish

Copy link
Copy Markdown

Fix: NTLM auth through SOCKS proxy and Zscaler environments

Changes:

  • domain.py: Use socket.gethostbyname() for LDAP server resolution
    instead of dnsresolver, allowing /etc/hosts to take precedence
  • domain.py: Skip Kerberos SRV lookup when auth-method is NTLM to
    prevent failures in environments where SRV queries are blocked
  • authentication.py: Fix userdomain override when using cross-domain
    NTLM authentication via forest trusts

Tested in environment with Zscaler intercepting all DNS queries,
successfully collecting from domains where the authenticating user
is homed in a different domain to the target collection domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant