Skip to content

How do I use the SDK without having templates installed? #6113

Closed Answered by Legion-101
h3h3qaq asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I misunderstood the question, I specify my local template directory and disable update checking. These actions allow me to avoid the error you sent.

	ne, err := nuclei.NewNucleiEngineCtx(
		ctx,
		nuclei.WithTemplateFilters(nuclei.TemplateFilters{Severity: "low"}),
		nuclei.WithCatalog(disk.NewCatalog(path)),
		nuclei.DisableUpdateCheck(),
	)
	if err != nil {
		logger.Error("create nuclei engine", slog.String("error", err.Error()))
	}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@h3h3qaq
Comment options

@h3h3qaq
Comment options

@Legion-101
Comment options

Answer selected by dogancanbakir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants