mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-16 23:43:25 +08:00
* adding min auth support * adding unauth list modules + auth list files in module * example * adding rsync test * bump go.mod --------- Co-authored-by: Dwi Siswanto <git@dw1.io>
32 lines
659 B
Go
32 lines
659 B
Go
package rsync
|
|
|
|
import (
|
|
lib_rsync "github.com/projectdiscovery/nuclei/v3/pkg/js/libs/rsync"
|
|
|
|
"github.com/Mzack9999/goja"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/js/gojs"
|
|
)
|
|
|
|
var (
|
|
module = gojs.NewGojaModule("nuclei/rsync")
|
|
)
|
|
|
|
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()
|
|
}
|
|
|
|
func Enable(runtime *goja.Runtime) {
|
|
module.Enable(runtime)
|
|
}
|