tcpdump
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tcpdump [2016/06/17 14:42] – luke7858 | tcpdump [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
\\ | \\ | ||
\\ | \\ | ||
- | ^ Flag ^ Description ^ | + | == Common Examples == |
- | | -A | Print each packet (minus its link level header) in ASCII. | + | In the following example |
- | | -n | Don't convert host addresses to names. | + | \\ |
- | | -nn | Don't convert protocol and port numbers etc. to names either. | | + | > Replace **//x.x.x.x//** with the IP of the machine you are running the dump from. This IP depends on the interface (public/ |
- | | -w | Write | + | > Replace **// |
- | | -i | Interface | | + | <sxh bash> |
- | | src | Only capture information from a source (eg, src host x.x.x.x )| | + | tcpdump |
- | | dst | Only capture traffic to destination address (a server | + | </ |
- | | -t | NO time stamp - might be easier to read | | + | |
- | | -vvv| Even more verbose output. For example, telnet SB ... SE options are printed in full. With -X Telnet options are printed in hex as well. | | + | |
\\ | \\ | ||
\\ | \\ | ||
- | == Examples == | ||
Description: | Description: | ||
Line 28: | Line 26: | ||
IP x.x.x.190.26753 > x.x.x.129.443: | IP x.x.x.190.26753 > x.x.x.129.443: | ||
</ | </ | ||
+ | \\ | ||
+ | \\ | ||
Description: | Description: | ||
<sxh bash> | <sxh bash> | ||
Line 55: | Line 55: | ||
195.154.211.129.50684 > 82.94.168.11.443: | 195.154.211.129.50684 > 82.94.168.11.443: | ||
</ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | ^ Flag ^ Description ^ | ||
+ | | -A | Print each packet (minus its link level header) in ASCII. | ||
+ | | -n | Don't convert host addresses to names. | ||
+ | | -nn | Don't convert protocol and port numbers etc. to names either. | | ||
+ | | -w | Write the raw packets to file rather than parsing and printing them out | | ||
+ | | -i | Interface | | ||
+ | | src | Only capture information from a source (eg, src host x.x.x.x )| | ||
+ | | dst | Only capture traffic to destination address (a server could have multiple IPs, so you can specify) | | ||
+ | | -t | NO time stamp - might be easier to read | | ||
+ | | -vvv| Even more verbose output. |
tcpdump.1466174554.txt.gz · Last modified: 2024/05/23 07:26 (external edit)