RES-84 # Improve Nuclei CLI interface

* Fixed Template Author mapping
dev
forgedhallpass 2021-08-17 14:05:52 +03:00
parent e9f77d7046
commit 456544d5be
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
type Info struct {
Name string `json:"name" yaml:"name"`
Authors StringSlice `json:"authors" yaml:"authors"`
Authors StringSlice `json:"author" yaml:"author"`
Tags StringSlice `json:"tags" yaml:"tags"`
Description string `json:"description" yaml:"description"`
Reference StringSlice `json:"reference" yaml:"reference"`

View File

@ -21,6 +21,6 @@ func TestInfoJsonMarshal(t *testing.T) {
result, err := json.Marshal(&info)
assert.Nil(t, err)
expected := `{"name":"Test Template Name","authors":["forgedhallpass","ice3man"],"tags":["cve","misc"],"description":"Test description","reference":"reference1","severity":"high"}`
expected := `{"name":"Test Template Name","author":["forgedhallpass","ice3man"],"tags":["cve","misc"],"description":"Test description","reference":"reference1","severity":"high"}`
assert.Equal(t, expected, string(result))
}