mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-22 23:15:27 +00:00
make protocolstate.IsHostAllowed check the domaincontroller, not the domain
This commit is contained in:
parent
44745cb0c9
commit
a167e6c57b
@ -55,9 +55,9 @@ func (c *LdapClient) CollectLdapMetadata(domain string, controller string) (LDAP
|
|||||||
domainController: controller,
|
domainController: controller,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !protocolstate.IsHostAllowed(domain) {
|
if !protocolstate.IsHostAllowed(controller) {
|
||||||
// host is not valid according to network policy
|
// host is not valid according to network policy
|
||||||
return LDAPMetadata{}, protocolstate.ErrHostDenied.Msgf(domain)
|
return LDAPMetadata{}, protocolstate.ErrHostDenied.Msgf(controller)
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := c.newLdapSession(opts)
|
conn, err := c.newLdapSession(opts)
|
||||||
@ -230,9 +230,9 @@ func (c *LdapClient) GetKerberoastableUsers(domain, controller string, username,
|
|||||||
password: password,
|
password: password,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !protocolstate.IsHostAllowed(domain) {
|
if !protocolstate.IsHostAllowed(controller) {
|
||||||
// host is not valid according to network policy
|
// host is not valid according to network policy
|
||||||
return nil, protocolstate.ErrHostDenied.Msgf(domain)
|
return nil, protocolstate.ErrHostDenied.Msgf(controller)
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := c.newLdapSession(opts)
|
conn, err := c.newLdapSession(opts)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user