Skip to content

Instantly share code, notes, and snippets.

@oliveira-andre
Created February 23, 2021 17:53
Show Gist options
  • Select an option

  • Save oliveira-andre/6ebdc806c5ff961d54449d69d4db9e30 to your computer and use it in GitHub Desktop.

Select an option

Save oliveira-andre/6ebdc806c5ff961d54449d69d4db9e30 to your computer and use it in GitHub Desktop.

TCP Dump

Details

Tool used to monitoring of traffic packages on the network

Basic usage

tcpdump -i eth0

Show the IP of domains

tcpdump -n -i eth0

Save the output

tcpdump -n -i eth0 -w tcpdump01.cap

Capture the http and https packages

tcpdump -r tcpdump01.cap | grep http

Capture the UDP packages

tcpdump -r tcpdump01.cap | grep UDP

Filter packages by specific source and only packages icmp

tcpdump -n eth0 icmp and src src 192.168.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment