From 48bae972f12d8e68550abbef31256bec2457f0a0 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 6 Apr 2018 13:00:45 +0200 Subject: Fix typos in mid.bro, add actual value to output --- script/mid.bro | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/mid.bro b/script/mid.bro index 04060d6..3ba0f1d 100644 --- a/script/mid.bro +++ b/script/mid.bro @@ -123,9 +123,10 @@ function midbro_generate_events(transaction: Transaction, c: connection, midbro_generate_event(transaction, c, headers, registers, regtype, filter_mem_addr - transaction$start_address); if (filter_mem_addr > transaction$start_address) { - local other_val = registers[filter_mem_addr - tansaction$start_address - 1]; - local f = open_for_append("/home/pi/pasad/data/values_other.txt"); - print f, other_val; + local val = registers[filter_mem_addr - transaction$start_address]; + local other_val = registers[filter_mem_addr - transaction$start_address - 1]; + local f = open_for_append("/home/pi/data/pasad/values_other.txt"); + print f, val, other_val; close(f); } } else { -- cgit v1.2.3