What command would you use to save a packet capture in PCAP format?

 

Last Updated on November 17, 2023 by InfraExam

What command would you use to save a packet capture in PCAP format?

  • sudo tcpdump -s 0 -n >evidence.pcap
  • sudo tcpdump -s 0 -n >>evidence.pcap
  • sudo tcpdump -s 0 -n -w evidence.pcap
  • sudo tcpdump -s 0 -n --writeevidence.pcap
Explanation & Hint:

The command you would use to save a packet capture in PCAP format is:

sudo tcpdump -s 0 -n -w evidence.pcap

The -w option is used to specify the output file in PCAP format, and in this case, it’s named “evidence.pcap.” This command captures network traffic, and the captured packets are written to the specified file in PCAP format.

For more Questions and Answers:

Endpoints and Systems Post-Assessment | CBROPS

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments