Skip to content

Instantly share code, notes, and snippets.

@guanqun
Last active February 3, 2016 01:20
Show Gist options
  • Save guanqun/e3a008ca05dc387f43da to your computer and use it in GitHub Desktop.
Save guanqun/e3a008ca05dc387f43da to your computer and use it in GitHub Desktop.
manipulate pcap with tshark: dump its udp port
/usr/bin/tshark -r some.cap.gz -T fields -e ip.dst -e udp.port -R "udp" > output.txt
/usr/bin/tshark -R ip.addr==1.1.1.1 -r test.pcap -w testout.pcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment