mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 11:13:00 +00:00
35 lines
669 B
Go
35 lines
669 B
Go
package redis
|
|
|
|
import (
|
|
lib_redis "github.com/projectdiscovery/nuclei/v3/pkg/js/libs/redis"
|
|
|
|
"github.com/Mzack9999/goja"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/js/gojs"
|
|
)
|
|
|
|
var (
|
|
module = gojs.NewGojaModule("nuclei/redis")
|
|
)
|
|
|
|
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,
|
|
|
|
// Var and consts
|
|
|
|
// Objects / Classes
|
|
|
|
},
|
|
).Register()
|
|
}
|
|
|
|
func Enable(runtime *goja.Runtime) {
|
|
module.Enable(runtime)
|
|
}
|