Versions in this module Expand all Collapse all v3 v3.3.4 Sep 30, 2024 Changes in this version + var DefaultOptions = &types.Options + var ExtraDebugArgs = []string + var ExtraEnvVars = []string + func Init(options *types.Options) + func NewMockExecuterOptions(options *types.Options, info *TemplateInfo) *protocols.ExecutorOptions + func NewWebsocketServer(path string, handler func(conn net.Conn), ...) *httptest.Server + func RunNucleiAndGetResults(isTemplate bool, template, url string, debug bool, extra ...string) ([]string, error) + func RunNucleiArgsAndGetErrors(debug bool, env []string, extra ...string) ([]string, error) + func RunNucleiArgsWithEnvAndGetResults(debug bool, env []string, extra ...string) ([]string, error) + func RunNucleiBareArgsAndGetResults(debug bool, env []string, extra ...string) ([]string, error) + func RunNucleiBinaryAndGetCombinedOutput(debug bool, args []string) (string, error) + func RunNucleiBinaryAndGetLoadedTemplates(nucleiBinary string, debug bool, args []string) (string, error) + func RunNucleiTemplateAndGetResults(template, url string, debug bool, extra ...string) ([]string, error) + func RunNucleiWithArgsAndGetResults(debug bool, args ...string) ([]string, error) + func RunNucleiWorkflowAndGetResults(template, url string, debug bool, extra ...string) ([]string, error) + type MockOutputWriter struct + FailureCallback func(result *output.InternalEvent) + RequestCallback func(templateID, url, requestType string, err error) + WriteCallback func(o *output.ResultEvent) + func NewMockOutputWriter(omomitTemplate bool) *MockOutputWriter + func (m *MockOutputWriter) Close() + func (m *MockOutputWriter) Colorizer() aurora.Aurora + func (m *MockOutputWriter) Request(templateID, url, requestType string, err error) + func (m *MockOutputWriter) Write(result *output.ResultEvent) error + func (m *MockOutputWriter) WriteFailure(wrappedEvent *output.InternalWrappedEvent) error + func (m *MockOutputWriter) WriteStoreDebugData(host, templateID, eventType string, data string) + type MockProgressClient struct + func (m *MockProgressClient) AddToTotal(delta int64) + func (m *MockProgressClient) IncrementErrorsBy(count int64) + func (m *MockProgressClient) IncrementFailedRequestsBy(count int64) + func (m *MockProgressClient) IncrementMatched() + func (m *MockProgressClient) IncrementRequests() + func (m *MockProgressClient) Init(hostCount int64, rulesCount int, requestCount int64) + func (m *MockProgressClient) SetRequests(count uint64) + func (m *MockProgressClient) Stop() + type NoopWriter struct + func (n *NoopWriter) Write(data []byte, level levels.Level) + type TCPServer struct + URL string + func NewTCPServer(tlsConfig *tls.Config, port int, handler func(conn net.Conn)) *TCPServer + func (s *TCPServer) Close() + type TemplateInfo struct + ID string + Info model.Info + Path string + type TestCase interface + Execute func(filePath string) error