0% found this document useful (0 votes)
36 views

Tcp Dump

Uploaded by

saurabhkrp77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Tcp Dump

Uploaded by

saurabhkrp77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Initiating a Trap-and-Trace with tcpdump

• The following command line initiates a trap-and-trace using tcpdump


with no filtering
and prints the output to the screen:

[root@linux taps]# tcpdump tcpdump: listening on eth0

12/19/2024 1
Tcpdump commands
• 1. Listing possible network interfaces on the system

tcpdump -D

• 2. Capture packets from a particular interface

tcpdump -i interface-name

12/19/2024 2
Tcpdump commands
• 3. Capture only N number of packets

• tcpdump -c N

• 4. Capture the packets and write into a file

tcpdump -w file.pcap

• 5. To capture and store network frames full-length

tcpdump -s 0

12/19/2024 3
Tcpdump commands
• 6. Reading the packets from a saved file

tcpdump -r file.pcap

• Capture packets with proper readable timestamp


tcpdump -tttt

12/19/2024 4
# tcpdump -i eth0 src 192.168.0.2

# tcpdump -i eth0 dst 192.168.0.2


Performing a Trap-and-Trace with WinDump

12/19/2024 7
TCPDUMP with NETCAT
Open one more linux terminal

You might also like