Formatted all pages according to guidelines.

This commit is contained in:
Ruben Vereecken
2016-01-07 18:31:27 +01:00
parent efa4cbd4de
commit 066582e8ea
284 changed files with 1338 additions and 1364 deletions

View File

@@ -1,27 +1,27 @@
# tcpdump
> Dump traffic on a network
> Dump traffic on a network.
- capture the traffic of a specific interface
- Capture the traffic of a specific interface:
`tcpdump -i {{eth0}}`
- capture all TCP traffic showing contents (ASCII) in console
- Capture all TCP traffic showing contents (ASCII) in console:
`tcpdump -A tcp`
- capture the traffic from or to a host
- Capture the traffic from or to a host:
`tcpdump host {{www.example.com}}`
- capture the traffic from a specific interface, source, destination and destination port
- Capture the traffic from a specific interface, source, destination and destination port:
`tcpdump -i {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port 80`
- capture the traffic of a network
- Capture the traffic of a network:
`tcpdump net {{192.168.1.0/24}}`
- capture all traffic except traffic over port 22 and save to a dump file
- Capture all traffic except traffic over port 22 and save to a dump file:
`tcpdump -w dumpfile.pcap not port 22`