Skip to content

Instantly share code, notes, and snippets.

@jsoros
Last active June 11, 2020 18:36
Show Gist options
  • Save jsoros/8096ddd5b2a37c561aaea98a7d527de2 to your computer and use it in GitHub Desktop.
Save jsoros/8096ddd5b2a37c561aaea98a7d527de2 to your computer and use it in GitHub Desktop.
Packet capture traffic and write output to file while displaying
sudo tcpdump '(src host <ip> and src port 443) or (dst host <IP> and dst port 443)' -U -s 1500 -i eth0 -w - | tee $(date +%Y%m%d%H%M%S).pcap | tcpdump -r -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment