aboutsummaryrefslogtreecommitdiff
path: root/script/investigate.sh
diff options
context:
space:
mode:
authorAndreas Lindhé <andreas@lindhe.io>2017-10-31 13:50:36 +0100
committerAndreas Lindhé <andreas@lindhe.io>2017-10-31 14:46:05 +0100
commitda4c77d51f971e6abe838db76d55c7fc4c103d5d (patch)
tree1f2373a25bda4ac3c3a5f5200f6c358510256dd6 /script/investigate.sh
parent87779bb56295a2c20076c9670522490b91789dc0 (diff)
downloadmidbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.gz
midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.bz2
Repo cleanup
Diffstat (limited to 'script/investigate.sh')
-rwxr-xr-xscript/investigate.sh8
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 ..."