Created
December 18, 2014 15:30
-
-
Save arreyder/62d3d5e615a4fdc84455 to your computer and use it in GitHub Desktop.
poor mans decoder for tshark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home_dir/z001ghd/src/wireshark-1.12.2./tshark -i eth0 -T fields -eframe.time -eip.src -eip.dst -e tcp.flags -edata.data -f "port 9042" |perl -e 'while(<>){($ts,$src,$dst,$flags,$hex)=split(/\t/,$_,); print "\n$ts\t$src->$dst\t";$hex=~tr/://d;while($hex=~/(.{2})/sg){print chr (hex($1));}print ".";}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment