mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 19:05:28 +00:00
* use parsed options while signing * update project layout to v3 * fix .gitignore * remove example template * misc updates * bump tlsx version * hide template sig warning with env * js: retain value while using log * fix nil pointer derefernce * misc doc update --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
35 lines
800 B
Go
35 lines
800 B
Go
package pop3
|
|
|
|
import (
|
|
lib_pop3 "github.com/projectdiscovery/nuclei/v3/pkg/js/libs/pop3"
|
|
|
|
"github.com/dop251/goja"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/js/gojs"
|
|
)
|
|
|
|
var (
|
|
module = gojs.NewGojaModule("nuclei/pop3")
|
|
)
|
|
|
|
func init() {
|
|
module.Set(
|
|
gojs.Objects{
|
|
// Functions
|
|
|
|
// Var and consts
|
|
|
|
// Types (value type)
|
|
"IsPOP3Response": func() lib_pop3.IsPOP3Response { return lib_pop3.IsPOP3Response{} },
|
|
"Pop3Client": func() lib_pop3.Pop3Client { return lib_pop3.Pop3Client{} },
|
|
|
|
// Types (pointer type)
|
|
"NewIsPOP3Response": func() *lib_pop3.IsPOP3Response { return &lib_pop3.IsPOP3Response{} },
|
|
"NewPop3Client": func() *lib_pop3.Pop3Client { return &lib_pop3.Pop3Client{} },
|
|
},
|
|
).Register()
|
|
}
|
|
|
|
func Enable(runtime *goja.Runtime) {
|
|
module.Enable(runtime)
|
|
}
|