exam questions

Exam CS0-003 All Questions

View all questions & answers for the CS0-003 exam

Exam CS0-003 topic 1 question 114 discussion

Actual exam question from CompTIA's CS0-003
Question #: 114
Topic #: 1
[All CS0-003 Questions]

A security analyst is trying to detect connections to a suspicious IP address by collecting the packet captures from the gateway. Which of the following commands should the security analyst consider running?

  • A. grep [IP address] packets.pcap
  • B. cat packets.pcap | grep [IP Address]
  • C. tcpdump -n -r packets.pcap host [IP address]
  • D. strings packets.pcap | grep [IP Address]
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kmordalv
Highly Voted 1 year, 3 months ago
Selected Answer: C
Correct The -n flag ensures that numeric IP addresses are not resolved to hostnames, and the -r flag specifies the input pcap file. The host [IP address] expression filters packets that involve the specified IP address, helping the security analyst detect connections to the suspicious IP address.
upvoted 9 times
...
glenndexter
Highly Voted 8 months ago
Selected Answer: C
The command tcpdump -n -r packets.pcap host [IP address] is used to read packets from a packet capture file (packets.pcap) and display only those packets that involve the specified IP address. Here's a breakdown of the command options: tcpdump: The command itself, which is used to capture and analyze network traffic. -n: This option instructs tcpdump to display IP addresses numerically (in dotted-decimal notation) rather than resolving them to hostnames. -r packets.pcap: Specifies the input file (packets.pcap) from which to read packets. host [IP address]: Specifies a filter expression to display packets involving the specified IP address.
upvoted 6 times
...
[Removed]
Most Recent 1 year, 1 month ago
Selected Answer: C
C) tcpdump TCPdump is used to collect packets, which is the tool the security analyst would be used.
upvoted 3 times
...
chaddman
1 year, 1 month ago
C. tcpdump -n -r packets.pcap host [IP address]: This command uses tcpdump to read from the packets.pcap file (-r packets.pcap) and filters traffic to and from the specified host (host [IP address]). The -n flag prevents DNS name resolution, making the output easier to read. This is the most suitable option for this specific task.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...