Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow specifying self-contained at http request level #4812

Merged
merged 7 commits into from
Mar 1, 2024
Merged
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
2 changes: 1 addition & 1 deletion pkg/js/generated/go/liboracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"IsOracle": lib_oracle.IsOracle,

// Var and consts

// Objects / Classes
"IsOracleResponse": gojs.GetClassConstructor[lib_oracle.IsOracleResponse](&lib_oracle.IsOracleResponse{}),
"OracleClient": gojs.GetClassConstructor[lib_oracle.OracleClient](&lib_oracle.OracleClient{}),
},
).Register()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/js/generated/go/libpop3/pop3.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"IsPOP3": lib_pop3.IsPOP3,

// Var and consts

// Objects / Classes
"IsPOP3Response": gojs.GetClassConstructor[lib_pop3.IsPOP3Response](&lib_pop3.IsPOP3Response{}),
"Pop3Client": gojs.GetClassConstructor[lib_pop3.Pop3Client](&lib_pop3.Pop3Client{}),
},
).Register()
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/js/generated/go/librdp/rdp.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"CheckRDPAuth": lib_rdp.CheckRDPAuth,
"IsRDP": lib_rdp.IsRDP,

// Var and consts

// Objects / Classes
"CheckRDPAuthResponse": gojs.GetClassConstructor[lib_rdp.CheckRDPAuthResponse](&lib_rdp.CheckRDPAuthResponse{}),
"IsRDPResponse": gojs.GetClassConstructor[lib_rdp.IsRDPResponse](&lib_rdp.IsRDPResponse{}),
"RDPClient": gojs.GetClassConstructor[lib_rdp.RDPClient](&lib_rdp.RDPClient{}),
},
).Register()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/js/generated/go/librsync/rsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"IsRsync": lib_rsync.IsRsync,

// Var and consts

// Objects / Classes
"IsRsyncResponse": gojs.GetClassConstructor[lib_rsync.IsRsyncResponse](&lib_rsync.IsRsyncResponse{}),
"RsyncClient": gojs.GetClassConstructor[lib_rsync.RsyncClient](&lib_rsync.RsyncClient{}),
},
).Register()
}
Expand Down
7 changes: 4 additions & 3 deletions pkg/js/generated/go/libsmtp/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"NewSMTPClient": lib_smtp.NewSMTPClient,

// Var and consts

// Objects / Classes
"IsSMTPResponse": gojs.GetClassConstructor[lib_smtp.IsSMTPResponse](&lib_smtp.IsSMTPResponse{}),
"SMTPClient": gojs.GetClassConstructor[lib_smtp.SMTPClient](&lib_smtp.SMTPClient{}),
"SMTPMessage": gojs.GetClassConstructor[lib_smtp.SMTPMessage](&lib_smtp.SMTPMessage{}),
"Client": lib_smtp.NewSMTPClient,
"SMTPMessage": gojs.GetClassConstructor[lib_smtp.SMTPMessage](&lib_smtp.SMTPMessage{}),
"SMTPResponse": gojs.GetClassConstructor[lib_smtp.SMTPResponse](&lib_smtp.SMTPResponse{}),
},
).Register()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/js/generated/go/libtelnet/telnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"IsTelnet": lib_telnet.IsTelnet,

// Var and consts

// Objects / Classes
"IsTelnetResponse": gojs.GetClassConstructor[lib_telnet.IsTelnetResponse](&lib_telnet.IsTelnetResponse{}),
"TelnetClient": gojs.GetClassConstructor[lib_telnet.TelnetClient](&lib_telnet.TelnetClient{}),
},
).Register()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/js/generated/go/libvnc/vnc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"IsVNC": lib_vnc.IsVNC,

// Var and consts

// Objects / Classes
"IsVNCResponse": gojs.GetClassConstructor[lib_vnc.IsVNCResponse](&lib_vnc.IsVNCResponse{}),
"VNCClient": gojs.GetClassConstructor[lib_vnc.VNCClient](&lib_vnc.VNCClient{}),
},
).Register()
}
Expand Down
1 change: 1 addition & 0 deletions pkg/js/generated/ts/ikev2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class IKEMessage {
* const ikev2 = require('nuclei/ikev2');
* const nonce = new ikev2.IKENonce();
* nonce.NonceData = [1, 2, 3];
* ```
*/
export interface IKENonce {

Expand Down
100 changes: 50 additions & 50 deletions pkg/js/generated/ts/kerberos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ export interface Config {
*/
export interface EncTicketPart {

RenewTill?: Date,

CRealm?: string,

AuthTime?: Date,
Expand All @@ -244,19 +246,17 @@ export interface EncTicketPart {

EndTime?: Date,

RenewTill?: Date,

Key?: EncryptionKey,

CName?: PrincipalName,

Transited?: TransitedEncoding,

CAddr?: HostAddress,

AuthorizationData?: AuthorizationDataEntry,

Flags?: BitString,

Key?: EncryptionKey,

CName?: PrincipalName,
}


Expand Down Expand Up @@ -306,9 +306,9 @@ export interface EnumerateUserResponse {
*/
export interface HostAddress {

Address?: Uint8Array,

AddrType?: number,

Address?: Uint8Array,
}


Expand All @@ -318,81 +318,81 @@ export interface HostAddress {
*/
export interface LibDefaults {

DefaultTGSEnctypes?: string[],
/**
* time in nanoseconds
*/

DefaultTktEnctypes?: string[],
Clockskew?: number,

K5LoginDirectory?: string,
KDCTimeSync?: number,

RealmTryDomains?: number,
SafeChecksumType?: number,

Canonicalize?: boolean,
/**
* time in nanoseconds
*/

K5LoginAuthoritative?: boolean,
TicketLifetime?: number,

NoAddresses?: boolean,
Forwardable?: boolean,

SafeChecksumType?: number,
K5LoginAuthoritative?: boolean,

AllowWeakCrypto?: boolean,

DefaultClientKeytabName?: string,

DNSLookupKDC?: boolean,
DefaultTktEnctypes?: string[],

IgnoreAcceptorHostname?: boolean,
ExtraAddresses?: Uint8Array,

Proxiable?: boolean,
K5LoginDirectory?: string,

/**
* time in nanoseconds
*/
PreferredPreauthTypes?: number[],

TicketLifetime?: number,
RDNS?: boolean,

DefaultKeytabName?: string,

DefaultTktEnctypeIDs?: number[],

Forwardable?: boolean,
DefaultRealm?: string,

PermittedEnctypeIDs?: number[],
DefaultTGSEnctypeIDs?: number[],

PreferredPreauthTypes?: number[],
DNSCanonicalizeHostname?: boolean,

UDPPreferenceLimit?: number,
PermittedEnctypes?: string[],

VerifyAPReqNofail?: boolean,

/**
* time in nanoseconds
*/
DNSLookupRealm?: boolean,

Clockskew?: number,
UDPPreferenceLimit?: number,

RDNS?: boolean,
Canonicalize?: boolean,

DNSCanonicalizeHostname?: boolean,
CCacheType?: number,

KDCTimeSync?: number,
DefaultTGSEnctypes?: string[],

PermittedEnctypes?: string[],
Proxiable?: boolean,

DefaultRealm?: string,
DNSLookupKDC?: boolean,

RealmTryDomains?: number,

/**
* time in nanoseconds
*/

RenewLifetime?: number,

CCacheType?: number,

DefaultTGSEnctypeIDs?: number[],
DefaultTktEnctypeIDs?: number[],

DNSLookupRealm?: boolean,
IgnoreAcceptorHostname?: boolean,

ExtraAddresses?: Uint8Array,
NoAddresses?: boolean,

AllowWeakCrypto?: boolean,
PermittedEnctypeIDs?: number[],

KDCDefaultOptions?: BitString,
}
Expand All @@ -416,17 +416,17 @@ export interface PrincipalName {
*/
export interface Realm {

Realm?: string,

AdminServer?: string[],

DefaultDomain?: string,

KDC?: string[],

KPasswdServer?: string[],

MasterKDC?: string[],

Realm?: string,

AdminServer?: string[],
}


Expand All @@ -450,10 +450,10 @@ export interface TGS {
*/
export interface Ticket {

TktVNO?: number,

Realm?: string,

TktVNO?: number,

SName?: PrincipalName,

EncPart?: EncryptedData,
Expand Down
1 change: 1 addition & 0 deletions pkg/js/generated/ts/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ export class Client {
* const client = new ldap.Client('ldap://ldap.example.com', 'acme.com');
* const users = client.GetADUsers();
* log(to_json(users));
* ```
*/
export interface ADObject {

Expand Down
6 changes: 3 additions & 3 deletions pkg/js/generated/ts/mssql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @example
* ```javascript
* const mssql = require('nuclei/mssql');
* const client = new mssql.Client();
* const client = new mssql.MSSQLClient;
* ```
*/
export class MSSQLClient {
Expand All @@ -22,7 +22,7 @@ export class MSSQLClient {
* @example
* ```javascript
* const mssql = require('nuclei/mssql');
* const client = new mssql.Client();
* const client = new mssql.MSSQLClient;
* const connected = client.Connect('acme.com', 1433, 'username', 'password');
* ```
*/
Expand All @@ -39,7 +39,7 @@ export class MSSQLClient {
* @example
* ```javascript
* const mssql = require('nuclei/mssql');
* const client = new mssql.Client();
* const client = new mssql.MSSQLClient;
* const connected = client.ConnectWithDB('acme.com', 1433, 'username', 'password', 'master');
* ```
*/
Expand Down
10 changes: 5 additions & 5 deletions pkg/js/generated/ts/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function BuildDSN(opts: MySQLOptions): string | null {
* @example
* ```javascript
* const mysql = require('nuclei/mysql');
* const client = new mysql.Client();
* const client = new mysql.MySQLClient;
* ```
*/
export class MySQLClient {
Expand Down Expand Up @@ -54,7 +54,7 @@ export class MySQLClient {
* @example
* ```javascript
* const mysql = require('nuclei/mysql');
* const client = new mysql.Client();
* const client = new mysql.MySQLClient;
* const connected = client.Connect('acme.com', 3306, 'username', 'password');
* ```
*/
Expand Down Expand Up @@ -84,7 +84,7 @@ export class MySQLClient {
* @example
* ```javascript
* const mysql = require('nuclei/mysql');
* const client = new mysql.Client();
* const client = new mysql.MySQLClient;
* const connected = client.ConnectWithDSN('username:password@tcp(acme.com:3306)/');
* ```
*/
Expand Down Expand Up @@ -209,9 +209,9 @@ export interface MySQLOptions {
*/
export interface SQLResult {

Count?: number,

Columns?: string[],

Count?: number,
}


Expand Down
Loading
Loading