Tarun Koyalwar dc44105baf
nuclei v3 : misc updates (#4247)
* use parsed options while signing

* update project layout to v3

* fix .gitignore

* remove example template

* misc updates

* bump tlsx version

* hide template sig warning with env

* js: retain value while using log

* fix nil pointer derefernce

* misc doc update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-10-17 17:44:13 +05:30

34 lines
1.1 KiB
JavaScript

/** @module kerberos */
/**
* @class
* @classdesc KerberosClient is a kerberos client
*/
class KerberosClient {
/**
* @method
* @description 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.
* @param {string} domain - The domain to check.
* @param {string} controller - The controller to use.
* @param {string} username - The username to check.
* @returns {EnumerateUserResponse} - The response of the enumeration.
* @throws {error} - The error encountered during enumeration.
* @example
* let m = require('nuclei/kerberos');
* let c = m.KerberosClient();
* let response = c.EnumerateUser('domain', 'controller', 'username');
*/
EnumerateUser(domain, controller, username) {
// implemented in go
};
};
/**
* @typedef {object} EnumerateUserResponse
* @description EnumerateUserResponse is the response object from the EnumerateUser method.
*/
const EnumerateUserResponse = {};
module.exports = {
KerberosClient: KerberosClient,
};