exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 373 discussion

Actual exam question from CompTIA's CAS-004
Question #: 373
Topic #: 1
[All CAS-004 Questions]

A security engineer is assessing a legacy server and needs to determine if FTP is running and on which port. The service cannot be turned off, as it would impact a critical application's ability to function. Which of the following commands would provide the information necessary to create a firewall rule to prevent that service from being exploited?

  • A. service –-status-all | grep ftpd
  • B. chkconfig –-list
  • C. netstat –tulpn
  • D. systemctl list-unit-file –-type service ftpd
  • E. service ftpd status
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
weaponxcel
Highly Voted 8 months ago
Selected Answer: C
C. netstat –tulpn -t : Display TCP connections. -u : Display UDP connections. -l : Display listening socket (services). -p : Display the process associated with the service. -n : Display numerical addresses instead of resolving hostnames. The output of this command will show all active network connections and listening ports along with the associated processes. You can then identify if FTP is running and on which port.
upvoted 7 times
...
OdinAtlasSteel
Most Recent 7 months, 2 weeks ago
Selected Answer: C
The most appropriate command to identify if FTP is running and on which port is netstat –tulpn. Once you identify the port, you can use that information to create a firewall rule to prevent exploitation.
upvoted 2 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 ...