Skip to content

Instantly share code, notes, and snippets.

@WJDigby
Created July 30, 2018 22:22
Show Gist options
  • Save WJDigby/107f9330ad120ba4044c69e951cc953a to your computer and use it in GitHub Desktop.
Save WJDigby/107f9330ad120ba4044c69e951cc953a to your computer and use it in GitHub Desktop.
Extract IP addresses from a packet capture
tcpdump -r <filename>.pcap 'ip' -n | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' -o | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment