Running scans using a specific template version #1125
-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Example: |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 4 replies
-
@pdelteil to support features like this we need to have a copy of all versions on the machine and we only store the latest version of the template release, so this might be not possible to implement, as far as the use case is concerned, I can suggest using |
Beta Was this translation helpful? Give feedback.
-
You can clone a specific version (without history) into a directory of your choosing (e.g. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I didn't think about that alternative. I will give it a try. |
Beta Was this translation helpful? Give feedback.
-
So, it works with this function:
The only problem is that running nuclei gives the following message (which is misleading): |
Beta Was this translation helpful? Give feedback.
-
Well, after testing it is not what I really intended to do, since every branch (or version) contains all previous branches/versions. I need to find a way to get only the new templates from version to version. I think this would work:
|
Beta Was this translation helpful? Give feedback.
-
I'm sorry for not answering it before. The idea is that sometimes I'm interested in running some new (and hot) templates, but not all (latest release). I could run them by tag or id manually, but it would take some manual work and time. |
Beta Was this translation helpful? Give feedback.
-
You could extend your script with something like the following: git diff v8.8.3...v8.8.4 --name-only | grep ".yaml$" This would return only the paths of the templates that were added or changed in the In #1452, we'll probably add support for loading template paths from a file, meaning, you won't even need the iteration part anymore. |
Beta Was this translation helpful? Give feedback.
-
@pdelteil we've decided to add direct support for this feature: Option to run only new template by given version You can try it out on the |
Beta Was this translation helpful? Give feedback.
-
Thanks @forgedhallpass. I will give it a try! |
Beta Was this translation helpful? Give feedback.
@pdelteil we've decided to add direct support for this feature:
Option to run only new template by given version
You can try it out on the
dev
branch. It will be present in the next release :)