diff --git a/pages/common/tcpdump.md b/pages/common/tcpdump.md index 315441fb1d..b8c902e5b4 100644 --- a/pages/common/tcpdump.md +++ b/pages/common/tcpdump.md @@ -11,13 +11,13 @@ `sudo tcpdump {{[-i|--interface]}} {{eth0}}` -- Capture all TCP traffic showing contents (ASCII) in console: +- Capture all TCP traffic showing contents ([A]SCII) in console: -`tcpdump -A tcp` +`sudo tcpdump -A tcp` - Capture the traffic from or to a host: -`tcpdump host {{www.example.com}}` +`sudo tcpdump host {{www.example.com}}` - Capture the traffic from a specific interface, source, destination and destination port: @@ -25,12 +25,12 @@ - Capture the traffic of a network: -`tcpdump net {{192.168.1.0/24}}` +`sudo 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 [w]rite to a dump file: -`tcpdump -w {{dumpfile.pcap}} port not {{22}}` +`sudo tcpdump -w {{dumpfile.pcap}} port not {{22}}` -- Read from a given dump file: +- [r]ead from a given dump file: `tcpdump -r {{dumpfile.pcap}}`