[BUG] Checksum File Parsing Fails Due to Missing Delimiters in (*TemplateManager).writeChecksumFileInDir
#5999
Labels
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Is there an existing issue for this?
Current Behavior
When the
.checksum
file exists in the templates directory, the(*TemplateManager).getChecksumFromDir
method fails because the.checksum
file lacks delimiters. As a result, the method always returns an empty map.Expected Behavior
The
.checksum
file should include the necessary delimiters when written by(*TemplateManager).writeChecksumFileInDir
. This would ensure that(*TemplateManager).getChecksumFromDir
can properly parse the file and return the correct map of checksums.Steps To Reproduce
Assume the templates directory is located at
/tmp/nuclei-templates
, and you are behind a few versions, e.g., v10.0.0 (also modify~/.config/nuclei/.templates-config.json
), while the latest version is v10.1.1.Relevant log output
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: