mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-24 06:35:26 +00:00
Misc output change
This commit is contained in:
parent
900c2da89c
commit
cdb7faaa0b
@ -114,6 +114,7 @@ func (r *Request) makeResultEventItem(wrapped *output.InternalWrappedEvent) *out
|
|||||||
Host: types.ToString(wrapped.InternalEvent["host"]),
|
Host: types.ToString(wrapped.InternalEvent["host"]),
|
||||||
Matched: types.ToString(wrapped.InternalEvent["matched"]),
|
Matched: types.ToString(wrapped.InternalEvent["matched"]),
|
||||||
ExtractedResults: wrapped.OperatorsResult.OutputExtracts,
|
ExtractedResults: wrapped.OperatorsResult.OutputExtracts,
|
||||||
|
Metadata: wrapped.OperatorsResult.PayloadValues,
|
||||||
Timestamp: time.Now(),
|
Timestamp: time.Now(),
|
||||||
IP: types.ToString(wrapped.InternalEvent["ip"]),
|
IP: types.ToString(wrapped.InternalEvent["ip"]),
|
||||||
}
|
}
|
||||||
|
|||||||
@ -209,6 +209,7 @@ func (r *Request) executeRequestWithPayloads(actualAddress, address, input strin
|
|||||||
if r.CompiledOperators != nil {
|
if r.CompiledOperators != nil {
|
||||||
result, ok := r.CompiledOperators.Execute(outputEvent, r.Match, r.Extract)
|
result, ok := r.CompiledOperators.Execute(outputEvent, r.Match, r.Extract)
|
||||||
if ok && result != nil {
|
if ok && result != nil {
|
||||||
|
event.OperatorsResult.PayloadValues = payloads
|
||||||
event.OperatorsResult = result
|
event.OperatorsResult = result
|
||||||
event.Results = r.MakeResultEvent(event)
|
event.Results = r.MakeResultEvent(event)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user