Fix problems with pmerge and pcat

This commit is contained in:
Neale Pickett 2020-09-21 14:50:56 -06:00
parent f5be5baebd
commit 4d9d840ab3
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.o

View File

@ -7,11 +7,11 @@
# * tail -n +5000 to ignore the first 5000 lines of your cache. # * tail -n +5000 to ignore the first 5000 lines of your cache.
# * grep the cache, use sed, awk, whatever # * 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") when=$(TZ=Z date -d @${ts%.*} "+%Y-%m-%d %H:%M:%S")
printf "Packet %s None: None\n" $proto printf "Packet %s None: None\n" $proto
printf " %s -> %s (%s)\n" ${src%,*} ${dst%,*} "$when" printf " %s -> %s (%s)\n" ${src%,*} ${dst%,*} "$when"
echo $payload | ./unhex | ./hd echo $payload | unhex | hd
echo echo
done done