From cdb7faaa0b811f433f395b2092caf60ec0875b22 Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Tue, 6 Jul 2021 21:11:30 +0530 Subject: [PATCH] Misc output change --- v2/pkg/protocols/network/operators.go | 1 + v2/pkg/protocols/network/request.go | 1 + 2 files changed, 2 insertions(+) diff --git a/v2/pkg/protocols/network/operators.go b/v2/pkg/protocols/network/operators.go index d515e686..e056ca96 100644 --- a/v2/pkg/protocols/network/operators.go +++ b/v2/pkg/protocols/network/operators.go @@ -114,6 +114,7 @@ func (r *Request) makeResultEventItem(wrapped *output.InternalWrappedEvent) *out Host: types.ToString(wrapped.InternalEvent["host"]), Matched: types.ToString(wrapped.InternalEvent["matched"]), ExtractedResults: wrapped.OperatorsResult.OutputExtracts, + Metadata: wrapped.OperatorsResult.PayloadValues, Timestamp: time.Now(), IP: types.ToString(wrapped.InternalEvent["ip"]), } diff --git a/v2/pkg/protocols/network/request.go b/v2/pkg/protocols/network/request.go index 6d509587..c30db971 100644 --- a/v2/pkg/protocols/network/request.go +++ b/v2/pkg/protocols/network/request.go @@ -209,6 +209,7 @@ func (r *Request) executeRequestWithPayloads(actualAddress, address, input strin if r.CompiledOperators != nil { result, ok := r.CompiledOperators.Execute(outputEvent, r.Match, r.Extract) if ok && result != nil { + event.OperatorsResult.PayloadValues = payloads event.OperatorsResult = result event.Results = r.MakeResultEvent(event) }