Learn the common elements required to create a Nuclei Template
metadata
. It also contains severity field which indicates the severity of the template, info block also supports dynamic fields, so one can define N number of key: value
blocks to provide more useful information about the template. reference is another popular tag to define external reference links for the template.
Another useful tag to always add in info
block is tags. This allows you to set some custom tags to a template, depending on the purpose like cve
, rce
etc. This allows nuclei to identify templates with your input tags and only run them.
Example of an info block -
<engine>-query: '<query>'
where:
<engine>
is the search engine, equivalent of the value of the -ue
option of nuclei or the -e
option of uncover<query>
is the search query, equivalent of the value of the -uq
option of nuclei or the -q
option of uncover