Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/js/generated/ts/redis.ts
2070 views
1
2
3
/**
4
* Connect tries to connect redis server with password
5
* @example
6
* ```javascript
7
* const redis = require('nuclei/redis');
8
* const connected = redis.Connect('acme.com', 6379, 'password');
9
* ```
10
*/
11
export function Connect(host: string, port: number, password: string): boolean | null {
12
return null;
13
}
14
15
16
17
/**
18
* GetServerInfo returns the server info for a redis server
19
* @example
20
* ```javascript
21
* const redis = require('nuclei/redis');
22
* const info = redis.GetServerInfo('acme.com', 6379);
23
* ```
24
*/
25
export function GetServerInfo(host: string, port: number): string | null {
26
return null;
27
}
28
29
30
31
/**
32
* GetServerInfoAuth returns the server info for a redis server
33
* @example
34
* ```javascript
35
* const redis = require('nuclei/redis');
36
* const info = redis.GetServerInfoAuth('acme.com', 6379, 'password');
37
* ```
38
*/
39
export function GetServerInfoAuth(host: string, port: number, password: string): string | null {
40
return null;
41
}
42
43
44
45
/**
46
* IsAuthenticated checks if the redis server requires authentication
47
* @example
48
* ```javascript
49
* const redis = require('nuclei/redis');
50
* const isAuthenticated = redis.IsAuthenticated('acme.com', 6379);
51
* ```
52
*/
53
export function IsAuthenticated(host: string, port: number): boolean | null {
54
return null;
55
}
56
57
58
59
/**
60
* RunLuaScript runs a lua script on the redis server
61
* @example
62
* ```javascript
63
* const redis = require('nuclei/redis');
64
* const result = redis.RunLuaScript('acme.com', 6379, 'password', 'return redis.call("get", KEYS[1])');
65
* ```
66
*/
67
export function RunLuaScript(host: string, port: number, password: string, script: string): any | null {
68
return null;
69
}
70
71
72