ngrep

Network packet sniffer with grep-like pattern matching for traffic

brewmacoslinux
Try with needOr install directly
Source

About

Network grep

Commands

ngrep

Examples

Capture HTTP traffic on default interface$ ngrep -q 'HTTP' 'tcp port 80'
Sniff DNS queries and responses$ ngrep -q 'port 53'
Monitor traffic on specific interface matching pattern$ ngrep -d en0 'GET|POST' 'tcp'