fix: input helper in executor options (#5712)

This commit is contained in:
chuu 2024-10-14 06:52:52 -07:00 committed by GitHub
parent d68af67e6e
commit aab2cadb64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@ package nuclei
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/projectdiscovery/nuclei/v3/pkg/input"
"strings" "strings"
"sync" "sync"
"time" "time"
@ -171,6 +172,7 @@ func (e *NucleiEngine) init(ctx context.Context) error {
ResumeCfg: types.NewResumeCfg(), ResumeCfg: types.NewResumeCfg(),
Browser: e.browserInstance, Browser: e.browserInstance,
Parser: e.parser, Parser: e.parser,
InputHelper: input.NewHelper(),
} }
if len(e.opts.SecretsFile) > 0 { if len(e.opts.SecretsFile) > 0 {
authTmplStore, err := runner.GetAuthTmplStore(*e.opts, e.catalog, e.executerOpts) authTmplStore, err := runner.GetAuthTmplStore(*e.opts, e.catalog, e.executerOpts)