Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions pkg/js/generated/go/libldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ func init() {
"FilterWorkstationTrustAccount": lib_ldap.FilterWorkstationTrustAccount,

// Objects / Classes
"Client": lib_ldap.NewClient,
"Config": gojs.GetClassConstructor[lib_ldap.Config](&lib_ldap.Config{}),
"LdapAttributes": gojs.GetClassConstructor[lib_ldap.LdapAttributes](&lib_ldap.LdapAttributes{}),
"LdapEntry": gojs.GetClassConstructor[lib_ldap.LdapEntry](&lib_ldap.LdapEntry{}),
"Metadata": gojs.GetClassConstructor[lib_ldap.Metadata](&lib_ldap.Metadata{}),
"SearchResult": gojs.GetClassConstructor[lib_ldap.SearchResult](&lib_ldap.SearchResult{}),
"AuthenticateOptions": gojs.GetClassConstructor[lib_ldap.AuthenticateOptions](&lib_ldap.AuthenticateOptions{}),
"Client": lib_ldap.NewClient,
"Config": gojs.GetClassConstructor[lib_ldap.Config](&lib_ldap.Config{}),
"LdapAttributes": gojs.GetClassConstructor[lib_ldap.LdapAttributes](&lib_ldap.LdapAttributes{}),
"LdapEntry": gojs.GetClassConstructor[lib_ldap.LdapEntry](&lib_ldap.LdapEntry{}),
"Metadata": gojs.GetClassConstructor[lib_ldap.Metadata](&lib_ldap.Metadata{}),
"SearchResult": gojs.GetClassConstructor[lib_ldap.SearchResult](&lib_ldap.SearchResult{}),
},
).Register()
}
Expand Down
5 changes: 3 additions & 2 deletions pkg/js/generated/go/libmssql/mssql.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ func init() {
// Var and consts

// Objects / Classes
"MSSQLClient": gojs.GetClassConstructor[lib_mssql.MSSQLClient](&lib_mssql.MSSQLClient{}),
"MSSQLInfo": gojs.GetClassConstructor[lib_mssql.MSSQLInfo](&lib_mssql.MSSQLInfo{}),
"MSSQLClient": gojs.GetClassConstructor[lib_mssql.MSSQLClient](&lib_mssql.MSSQLClient{}),
"MSSQLInfo": gojs.GetClassConstructor[lib_mssql.MSSQLInfo](&lib_mssql.MSSQLInfo{}),
"MSSQLOptions": gojs.GetClassConstructor[lib_mssql.MSSQLOptions](&lib_mssql.MSSQLOptions{}),
},
).Register()
}
Expand Down
1 change: 1 addition & 0 deletions pkg/js/generated/go/liboracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func init() {
// Objects / Classes
"IsOracleResponse": gojs.GetClassConstructor[lib_oracle.IsOracleResponse](&lib_oracle.IsOracleResponse{}),
"OracleClient": gojs.GetClassConstructor[lib_oracle.OracleClient](&lib_oracle.OracleClient{}),
"OracleOptions": gojs.GetClassConstructor[lib_oracle.OracleOptions](&lib_oracle.OracleOptions{}),
},
).Register()
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/js/generated/go/libpostgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func init() {
// Var and consts

// Objects / Classes
"PGClient": gojs.GetClassConstructor[lib_postgres.PGClient](&lib_postgres.PGClient{}),
"PGClient": gojs.GetClassConstructor[lib_postgres.PGClient](&lib_postgres.PGClient{}),
"PostgresOptions": gojs.GetClassConstructor[lib_postgres.PostgresOptions](&lib_postgres.PostgresOptions{}),
},
).Register()
}
Expand Down
13 changes: 7 additions & 6 deletions pkg/js/generated/go/libredis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"Connect": lib_redis.Connect,
"GetServerInfo": lib_redis.GetServerInfo,
"GetServerInfoAuth": lib_redis.GetServerInfoAuth,
"IsAuthenticated": lib_redis.IsAuthenticated,
"RunLuaScript": lib_redis.RunLuaScript,
"Connect": lib_redis.Connect, //nolint:staticcheck // SA1019: retained for JS API compatibility
"ConnectWithOptions": lib_redis.ConnectWithOptions,
"GetServerInfo": lib_redis.GetServerInfo,
"GetServerInfoAuth": lib_redis.GetServerInfoAuth,
"IsAuthenticated": lib_redis.IsAuthenticated,
"RunLuaScript": lib_redis.RunLuaScript,

// Var and consts

// Objects / Classes

"RedisOptions": gojs.GetClassConstructor[lib_redis.RedisOptions](&lib_redis.RedisOptions{}),
},
).Register()
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/js/generated/go/libsmb/smb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func init() {
// Var and consts

// Objects / Classes
"SMBClient": gojs.GetClassConstructor[lib_smb.SMBClient](&lib_smb.SMBClient{}),
"SMBClient": gojs.GetClassConstructor[lib_smb.SMBClient](&lib_smb.SMBClient{}),
"SMBOptions": gojs.GetClassConstructor[lib_smb.SMBOptions](&lib_smb.SMBOptions{}),
},
).Register()
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/js/generated/go/libssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func init() {
// Var and consts

// Objects / Classes
"SSHClient": gojs.GetClassConstructor[lib_ssh.SSHClient](&lib_ssh.SSHClient{}),
"SSHClient": gojs.GetClassConstructor[lib_ssh.SSHClient](&lib_ssh.SSHClient{}),
"SSHOptions": gojs.GetClassConstructor[lib_ssh.SSHOptions](&lib_ssh.SSHOptions{}),
},
).Register()
}
Expand Down
1 change: 1 addition & 0 deletions pkg/js/generated/go/libtelnet/telnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func init() {
"IsTelnetResponse": gojs.GetClassConstructor[lib_telnet.IsTelnetResponse](&lib_telnet.IsTelnetResponse{}),
"TelnetClient": gojs.GetClassConstructor[lib_telnet.TelnetClient](&lib_telnet.TelnetClient{}),
"TelnetInfoResponse": gojs.GetClassConstructor[lib_telnet.TelnetInfoResponse](&lib_telnet.TelnetInfoResponse{}),
"TelnetOptions": gojs.GetClassConstructor[lib_telnet.TelnetOptions](&lib_telnet.TelnetOptions{}),
},
).Register()
}
Expand Down
1 change: 1 addition & 0 deletions pkg/js/generated/go/libvnc/vnc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func init() {
// Objects / Classes
"IsVNCResponse": gojs.GetClassConstructor[lib_vnc.IsVNCResponse](&lib_vnc.IsVNCResponse{}),
"VNCClient": gojs.GetClassConstructor[lib_vnc.VNCClient](&lib_vnc.VNCClient{}),
"VNCOptions": gojs.GetClassConstructor[lib_vnc.VNCOptions](&lib_vnc.VNCOptions{}),
},
).Register()
}
Expand Down
23 changes: 23 additions & 0 deletions pkg/js/generated/ts/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,14 @@ export class Client {
}


/**
* AuthenticateWithOptions authenticates using a password or an NTLM hash.
*/
public AuthenticateWithOptions(opts: AuthenticateOptions): boolean {
return false;
}


/**
* AuthenticateWithNTLMHash authenticates with the ldap server using the given username and NTLM hash
* @example
Expand Down Expand Up @@ -507,6 +515,21 @@ export interface Config {



/**
* AuthenticateOptions defines credentials for LDAP authentication. Hash takes
* precedence over Password when both are provided.
*/
export interface AuthenticateOptions {

Username?: string,

Password?: string,

Hash?: string,
}



/**
* LdapAttributes represents all LDAP attributes of a particular
* ldap entry
Expand Down
28 changes: 28 additions & 0 deletions pkg/js/generated/ts/mssql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ export class MSSQLClient {
}


/**
* ConnectWithOptions connects to MS SQL using the supplied connection options.
*/
public ConnectWithOptions(opts: MSSQLOptions): boolean | null {
return null;
}


/**
* IsMssql checks if the given host is running MS SQL database.
* If the host is running MS SQL database, it returns true.
Expand Down Expand Up @@ -95,6 +103,26 @@ export class MSSQLClient {



/**
* MSSQLOptions defines the connection options for an MS SQL database.
*/
export interface MSSQLOptions {

Host?: string,

Port?: number,

Username?: string,

Password?: string,

DbName?: string,

Timeout?: number,
}



/**
* SQLResult Interface
*/
Expand Down
8 changes: 8 additions & 0 deletions pkg/js/generated/ts/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ export class MySQLClient {
}


/**
* ConnectWithOptions connects to MySQL using the supplied connection options.
*/
public ConnectWithOptions(opts: MySQLOptions): boolean | null {
return null;
}


/**
* returns MySQLInfo when fingerprint is successful
* @example
Expand Down
18 changes: 18 additions & 0 deletions pkg/js/generated/ts/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export class OracleClient {
return null;
}

/**
* ConnectWithOptions connects to Oracle using the supplied connection options.
*/
public ConnectWithOptions(opts: OracleOptions): boolean | null {
return null;
}

/**
* ConnectWithDSN connects to an Oracle database using a DSN string
* @example
Expand Down Expand Up @@ -96,6 +103,17 @@ export class OracleClient {
}
}

/**
* OracleOptions defines the connection options for an Oracle database.
*/
export interface OracleOptions {
Host?: string,
Port?: number,
ServiceName?: string,
Username?: string,
Password?: string,
}

/**
* SQLResult Interface
*/
Expand Down
30 changes: 30 additions & 0 deletions pkg/js/generated/ts/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ export class PGClient {
}


/**
* ConnectWithOptions connects to Postgres using the supplied connection options.
*/
public ConnectWithOptions(opts: PostgresOptions): boolean | null {
return null;
}


/**
* ExecuteQuery connects to Postgres database using given credentials and database name.
* and executes a query on the db.
Expand Down Expand Up @@ -84,6 +92,28 @@ export class PGClient {



/**
* PostgresOptions defines the connection options for a Postgres database.
*/
export interface PostgresOptions {

Host?: string,

Port?: number,

Username?: string,

Password?: string,

DbName?: string,

Timeout?: number,

SSLMode?: string,
}



/**
* SQLResult Interface
*/
Expand Down
37 changes: 37 additions & 0 deletions pkg/js/generated/ts/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,43 @@ export function Connect(host: string, port: number, password: string): boolean |



/**
* ConnectWithOptions tries to connect to Redis using the supplied options.
* @example
* ```javascript
* const redis = require('nuclei/redis');
* const opts = new redis.RedisOptions();
* opts.Host = 'acme.com';
* opts.Port = 6379;
* opts.Password = 'password';
* opts.DB = 1;
* const connected = redis.ConnectWithOptions(opts);
* ```
*/
export function ConnectWithOptions(opts: RedisOptions): boolean | null {
return null;
}



/**
* RedisOptions defines the connection options for a Redis server.
*/
export interface RedisOptions {

Host?: string,

Port?: number,

Password?: string,

DB?: number,

Timeout?: number,
}



/**
* GetServerInfo returns the server info for a redis server
* @example
Expand Down
52 changes: 52 additions & 0 deletions pkg/js/generated/ts/smb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,26 @@ export class SMBClient {
return null;
}

/**
* ListSharesWithOptions lists SMB share names using SMBOptions.
* Supports domain, pass-the-hash, workstation, and SPN overrides.
* @example
* ```javascript
* const smb = require('nuclei/smb');
* const client = new smb.SMBClient();
* const opts = new smb.SMBOptions();
* opts.Host = 'acme.com';
* opts.Port = 445;
* opts.User = 'Administrator';
* opts.Domain = 'ACME';
* const shares = client.ListSharesWithOptions(opts);
* ```
*/
public ListSharesWithOptions(opts: SMBOptions): string[] | null {
return null;
}


/**
* DetectSMBGhost tries to detect SMBGhost vulnerability
* by using SMBv3 compression feature.
Expand Down Expand Up @@ -174,6 +194,38 @@ export interface ProtocolInfo {



/**
* SMBOptions represents configuration for authenticated SMB operations.
* @example
* ```javascript
* const smb = require('nuclei/smb');
* const opts = new smb.SMBOptions();
* opts.Host = 'acme.com';
* opts.Port = 445;
* opts.User = 'Administrator';
* opts.Password = 'password';
* opts.Domain = 'ACME';
* ```
*/
export interface SMBOptions {

Host?: string,

Port?: number,

User?: string,

Password?: string,

Hash?: string,

Domain?: string,

Timeout?: number,
}



/**
* HeaderLog Interface
*/
Expand Down
Loading
Loading