mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 17:25:28 +00:00
* introducing execution id * wip * . * adding separate execution context id * lint * vet * fixing pg dialers * test ignore * fixing loader FD limit * test * fd fix * wip: remove CloseProcesses() from dev merge * wip: fix merge issue * protocolstate: stop memguarding on last dialer delete * avoid data race in dialers.RawHTTPClient * use shared logger and avoid race conditions * use shared logger and avoid race conditions * go mod * patch executionId into compiled template cache * clean up comment in Parse * go mod update * bump echarts * address merge issues * fix use of gologger * switch cmd/nuclei to options.Logger * address merge issues with go.mod * go vet: address copy of lock with new Copy function * fixing tests * disable speed control * fix nil ExecuterOptions * removing deprecated code * fixing result print * default logger * cli default logger * filter warning from results * fix performance test * hardcoding path * disable upload * refactor(runner): uses `Warning` instead of `Print` for `pdcpUploadErrMsg` Signed-off-by: Dwi Siswanto <git@dw1.io> * Revert "disable upload" This reverts commit 114fbe6663361bf41cf8b2645fd2d57083d53682. * Revert "hardcoding path" This reverts commit cf12ca800e0a0e974bd9fd4826a24e51547f7c00. --------- Signed-off-by: Dwi Siswanto <git@dw1.io> Co-authored-by: Mzack9999 <mzack9999@protonmail.com> Co-authored-by: Dwi Siswanto <git@dw1.io> Co-authored-by: Dwi Siswanto <25837540+dwisiswant0@users.noreply.github.com>
56 lines
2.8 KiB
Go
56 lines
2.8 KiB
Go
package reporting
|
|
|
|
import (
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/es"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/jsonexporter"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/jsonl"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/markdown"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/mongo"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/sarif"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/exporters/splunk"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/trackers/filters"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/trackers/gitea"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/trackers/github"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/trackers/gitlab"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/trackers/jira"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/reporting/trackers/linear"
|
|
"github.com/projectdiscovery/retryablehttp-go"
|
|
)
|
|
|
|
// Options is a configuration file for nuclei reporting module
|
|
type Options struct {
|
|
// AllowList contains a list of allowed events for reporting module
|
|
AllowList *filters.Filter `yaml:"allow-list"`
|
|
// DenyList contains a list of denied events for reporting module
|
|
DenyList *filters.Filter `yaml:"deny-list"`
|
|
// GitHub contains configuration options for GitHub Issue Tracker
|
|
GitHub *github.Options `yaml:"github"`
|
|
// GitLab contains configuration options for GitLab Issue Tracker
|
|
GitLab *gitlab.Options `yaml:"gitlab"`
|
|
// Gitea contains configuration options for Gitea Issue Tracker
|
|
Gitea *gitea.Options `yaml:"gitea"`
|
|
// Jira contains configuration options for Jira Issue Tracker
|
|
Jira *jira.Options `yaml:"jira"`
|
|
// Linear contains configuration options for Linear Issue Tracker
|
|
Linear *linear.Options `yaml:"linear"`
|
|
// MarkdownExporter contains configuration options for Markdown Exporter Module
|
|
MarkdownExporter *markdown.Options `yaml:"markdown"`
|
|
// SarifExporter contains configuration options for Sarif Exporter Module
|
|
SarifExporter *sarif.Options `yaml:"sarif"`
|
|
// ElasticsearchExporter contains configuration options for Elasticsearch Exporter Module
|
|
ElasticsearchExporter *es.Options `yaml:"elasticsearch"`
|
|
// SplunkExporter contains configuration options for splunkhec Exporter Module
|
|
SplunkExporter *splunk.Options `yaml:"splunkhec"`
|
|
// JSONExporter contains configuration options for JSON Exporter Module
|
|
JSONExporter *jsonexporter.Options `yaml:"json"`
|
|
// JSONLExporter contains configuration options for JSONL Exporter Module
|
|
JSONLExporter *jsonl.Options `yaml:"jsonl"`
|
|
// MongoDBExporter containers the configuration options for the MongoDB Exporter Module
|
|
MongoDBExporter *mongo.Options `yaml:"mongodb"`
|
|
|
|
HttpClient *retryablehttp.Client `yaml:"-"`
|
|
OmitRaw bool `yaml:"-"`
|
|
|
|
ExecutionId string `yaml:"-"`
|
|
}
|