mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-19 00:43:21 +08:00
introduce template-encoded field (#4315)
* introduce `template-encoded` field * remove IsCustomTemplate func * refactor and move encoding to `MakeResultEventItem` func * encode template in case of no results were found * commit to last commit * don't encode templates when`-ms` is used
This commit is contained in:
@@ -634,6 +634,7 @@ func (request *Request) MakeResultEventItem(wrapped *output.InternalWrappedEvent
|
||||
Request: types.ToString(wrapped.InternalEvent["request"]),
|
||||
Response: types.ToString(wrapped.InternalEvent["response"]),
|
||||
IP: types.ToString(wrapped.InternalEvent["ip"]),
|
||||
TemplateEncoded: request.options.EncodeTemplate(),
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ func setup() {
|
||||
progressImpl, _ := progress.NewStatsTicker(0, false, false, false, 0)
|
||||
|
||||
executerOpts = protocols.ExecutorOptions{
|
||||
Output: testutils.NewMockOutputWriter(),
|
||||
Output: testutils.NewMockOutputWriter(options.OmitTemplate),
|
||||
Options: options,
|
||||
Progress: progressImpl,
|
||||
ProjectFile: nil,
|
||||
|
||||
Reference in New Issue
Block a user