mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 18:51:06 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List available network interfaces:
|
||||
|
||||
`tcpdump -D`
|
||||
`tcpdump {{[-D|--list-interfaces]}}`
|
||||
|
||||
- Capture the traffic of a specific interface:
|
||||
|
||||
`tcpdump -i {{eth0}}`
|
||||
`sudo tcpdump {{[-i|--interface]}} {{eth0}}`
|
||||
|
||||
- Capture all TCP traffic showing contents (ASCII) in console:
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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}}`
|
||||
`tcpdump {{[-i|--interface]} {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}`
|
||||
|
||||
- Capture the traffic of a network:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user