diff options
author | Andreas Lindhé <andreas@lindhe.io> | 2017-10-31 13:50:36 +0100 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-31 14:46:05 +0100 |
commit | da4c77d51f971e6abe838db76d55c7fc4c103d5d (patch) | |
tree | 1f2373a25bda4ac3c3a5f5200f6c358510256dd6 /script/investigate.sh | |
parent | 87779bb56295a2c20076c9670522490b91789dc0 (diff) | |
download | midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.gz midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.bz2 |
Repo cleanup
Diffstat (limited to 'script/investigate.sh')
-rwxr-xr-x | script/investigate.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/investigate.sh b/script/investigate.sh index 9f67949..ced1449 100755 --- a/script/investigate.sh +++ b/script/investigate.sh @@ -6,7 +6,7 @@ then echo "and stores both the data and a plot in the current directory." echo echo "Usage: $0 DUMP IP ADDR" - echo "Example: $0 packets_00014_20161128135616.cap 192.168.215.66 64" + echo "Example: $0 livedata.cap 192.168.0.53 64" exit fi @@ -21,9 +21,9 @@ FILTER_MACHINE=$2 FILTER_REGISTER=$3 BRODIR=$(realpath "$(dirname "$0")/../..") -BROSCRIPT_BASE=${BRODIR}/broccoli/script/modbus.bro +BROSCRIPT_BASE=${BRODIR}/script/modbus.bro -TMPDIR=$(mktemp --tmpdir --directory pasad.XXXX) +TMPDIR=$(mktemp --tmpdir --directory midbro.XXXX) TMPDIR_BRO=${TMPDIR}/bro BROSCRIPT_MOD=${TMPDIR}/modbus.bro @@ -43,7 +43,7 @@ cd "${TMPDIR_BRO}" bro -r "${CAPTURE_FILE}" "${BROSCRIPT_MOD}" > /dev/null echo " * Extracting data ..." -tail -n +9 "${TMPDIR_BRO}/pasad-parsed.log" | cut -f 5 > "${OUTFILE_DAT}" +tail -n +9 "${TMPDIR_BRO}/midbro-parsed.log" | cut -f 5 > "${OUTFILE_DAT}" echo "${OUTFILE_DAT}" echo " * Generating graph ..." |