Methods
EnumerateUser(domain, controller, username) → {EnumerateUserResponse}
EnumerateUser returns true if the user exists in the domain. If the user is not found, false is returned. If the user is found, true is returned. Optionally, the AS-REP hash is also returned if discovered.
Parameters:
Name | Type | Description |
---|---|---|
domain | string | The domain to check. |
controller | string | The controller to use. |
username | string | The username to check. |
- Source
Throws:
- - The error encountered during enumeration.
- Type
- error
Returns:
- The response of the enumeration.
- Type:
- EnumerateUserResponse
Example
let m = require('nuclei/kerberos');
let c = m.KerberosClient();
let response = c.EnumerateUser('domain', 'controller', 'username');