From 4d9d840ab3ac8e66ac69365e2f910548762b74a3 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 21 Sep 2020 14:50:56 -0600 Subject: [PATCH] Fix problems with pmerge and pcat --- .gitignore | 1 + dumbdecode | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/dumbdecode b/dumbdecode index da8970b..95f9701 100755 --- a/dumbdecode +++ b/dumbdecode @@ -7,11 +7,11 @@ # * tail -n +5000 to ignore the first 5000 lines of your cache. # * grep the cache, use sed, awk, whatever -./pmerge "$@" | ./pcat | while read ts proto src dst payload; do +pmerge "$@" | pcat | while read ts proto src dst opts payload; do when=$(TZ=Z date -d @${ts%.*} "+%Y-%m-%d %H:%M:%S") printf "Packet %s None: None\n" $proto printf " %s -> %s (%s)\n" ${src%,*} ${dst%,*} "$when" - echo $payload | ./unhex | ./hd + echo $payload | unhex | hd echo done