Skip to content

Instantly share code, notes, and snippets.

@aeppert
Created August 3, 2017 20:47
Show Gist options
  • Select an option

  • Save aeppert/0721c470a812d5de10acc87364c13c92 to your computer and use it in GitHub Desktop.

Select an option

Save aeppert/0721c470a812d5de10acc87364c13c92 to your computer and use it in GitHub Desktop.
Generate PCAP protocol statistics
#!/bin/bash
for i in `find . -type f -name "$1"`
do
mv $i $i.pcap
tshark -r $i.pcap -q -z io,phs > $i-summary.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment