Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Update of Only Custom Templates #3705

Closed
kchason opened this issue May 18, 2023 · 0 comments · Fixed by #3926
Closed

Allow Update of Only Custom Templates #3705

kchason opened this issue May 18, 2023 · 0 comments · Fixed by #3926
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Milestone

Comments

@kchason
Copy link
Contributor

kchason commented May 18, 2023

Please describe your feature request:

Add a new flag that allows custom templates to be updated without updating the default templates from the nuclei-templates project on GitHub.

This would be reflected with a new CLI argument:

-uct, -update-custom-templates    update custom templates to the latest available version(s)

Intended Behavior:

  • Default or -ut: both the nuclei-templates and custom template providers are checked for updates and downloaded as appropriate (current behavior).
  • -duc: no templates are downloaded and no checks are performed (current behavior).
  • -duc -ut: no templates are downloaded and no checks are performed (current behavior).
  • -duc -uct: only the custom template providers (if available) are checked and downloaded (proposed behavior).

This is addressed in: #3706

Describe the use case of this feature:

  1. Allows nuclei to update the custom templates from local resources while not on the open internet.
  2. Reduces the number of calls and data traffic required during updates when the user only wants to update custom templates.
@kchason kchason added the Type: Enhancement Most issues will probably ask for additions or changes. label May 18, 2023
@ehsandeep ehsandeep linked a pull request May 22, 2023 that will close this issue
4 tasks
@ehsandeep ehsandeep linked a pull request Jul 14, 2023 that will close this issue
4 tasks
ehsandeep pushed a commit that referenced this issue Jul 17, 2023
* Download override option definition

* Update the variable names for consistency

* Add checks for custom template disable flags

* Environment variable controlled template downloads

* Switch env naming per feedback from @ehsandeep

* minor changes

---------

Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Jul 17, 2023
@ehsandeep ehsandeep added this to the nuclei v2.9.9 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
2 participants