Documentation Index
Fetch the complete documentation index at: https://projectdiscovery.sec-lab.cn/llms.txt
Use this file to discover all available pages before exploring further.
命名空间: redis
Connect
▸ Connect(host, port, password): boolean | null
Connect 尝试使用密码连接到 redis 服务器
| 名称 | 类型 |
|---|
host | string |
port | number |
password | string |
返回值
boolean | null
示例
const redis = require('nuclei/redis');
const connected = redis.Connect('acme.com', 6379, 'password');
定义于
redis.ts:11
GetServerInfo
▸ GetServerInfo(host, port): string | null
GetServerInfo 返回 redis 服务器的信息
返回值
string | null
示例
const redis = require('nuclei/redis');
const info = redis.GetServerInfo('acme.com', 6379);
定义于
redis.ts:25
GetServerInfoAuth
▸ GetServerInfoAuth(host, port, password): string | null
GetServerInfoAuth 返回 redis 服务器的信息
| 名称 | 类型 |
|---|
host | string |
port | number |
password | string |
返回值
string | null
示例
const redis = require('nuclei/redis');
const info = redis.GetServerInfoAuth('acme.com', 6379, 'password');
定义于
redis.ts:39
IsAuthenticated
▸ IsAuthenticated(host, port): boolean | null
IsAuthenticated 检查 redis 服务器是否需要身份验证
返回值
boolean | null
示例
const redis = require('nuclei/redis');
const isAuthenticated = redis.IsAuthenticated('acme.com', 6379);
定义于
redis.ts:53
RunLuaScript
▸ RunLuaScript(host, port, password, script): any | null
RunLuaScript 在 redis 服务器上运行 Lua 脚本
| 名称 | 类型 |
|---|
host | string |
port | number |
password | string |
script | string |
返回值
any | null
示例
const redis = require('nuclei/redis');
const result = redis.RunLuaScript('acme.com', 6379, 'password', 'return redis.call("get", KEYS[1])');
定义于
redis.ts:67