Skip to content

Instantly share code, notes, and snippets.

@arreyder
Created December 18, 2014 15:30
Show Gist options
  • Save arreyder/62d3d5e615a4fdc84455 to your computer and use it in GitHub Desktop.
Save arreyder/62d3d5e615a4fdc84455 to your computer and use it in GitHub Desktop.
poor mans decoder for tshark
/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