Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 505 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 505 Bytes

About

A dumbed down Go tcpdump that prints some data of each capture packets out to sdtout as a JSON document.

What is in the JSON blob:

  • Hostname where we capture
  • Timestamp of the capture
  • Length of the packet
  • Layer 3 type (IPv4, IPv6, ...)
  • Source IP
  • Destination IP
  • Layer 4 type (TCP, UDP, ...)
  • Source Port
  • Destination Port

Usage

go get -u github.com/skinp/gotcpdump
go install github.com/skinp/gotcpdump
gotcpdump -s SNAPSHOT_LENGTH -i DEVICE_NAME -f PCAP_FILTER