Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam CAS-004 Topic 1 Question 53 Discussion

Actual exam question for CompTIA's CAS-004 exam
Question #: 53
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?

Show Suggested Answer Hide Answer
Suggested Answer: C

The netstat -tulpn command is used to display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. The -tulpn options specifically show TCP and UDP connections with the process ID and the name that is listening on each port, which would provide the necessary information to identify if FTP is running and on which port without turning the service off. This information can then be used to create a precise firewall rule to prevent the FTP service from being exploited.


Contribute your Thoughts:

Antonio
11 months ago
I agree with Edna, option C seems like the best choice for determining the port number for FTP.
upvoted 0 times
...
Cordelia
11 months ago
Hey, guys, I've got a great idea! Why don't we just unplug the server and see what happens? That'll definitely solve the FTP problem, am I right? Or maybe we could just throw it out the window, that might work too.
upvoted 0 times
Rozella
9 months ago
C: Let's focus on using the right command to determine if FTP is running and on which port.
upvoted 0 times
...
Dalene
9 months ago
B: Yeah, that would cause a lot more problems. We need to find a more strategic solution.
upvoted 0 times
...
Vilma
10 months ago
A: No way, that's a terrible idea. We can't just unplug the server.
upvoted 0 times
...
Emogene
10 months ago
C) neestat -tulpn
upvoted 0 times
...
Willow
10 months ago
B) chkconfig --list
upvoted 0 times
...
Myra
10 months ago
A) service ---status-ali I grep ftpd
upvoted 0 times
...
...
Edna
11 months ago
That makes sense, but I still think option C is more relevant for identifying the port FTP is running on.
upvoted 0 times
...
Trinidad
11 months ago
I disagree, I believe the correct answer is D) systeactl list-unit-file --type service ftpd as it lists all the systemd unit files for the service.
upvoted 0 times
...
Bernardo
11 months ago
Whoa, whoa, whoa, hold up. Did you guys seriously just suggest 'neestat'? I think you need to lay off the caffeine, my friends. Option D is the way to go, no doubt about it.
upvoted 0 times
Fletcher
10 months ago
Yeah, 'neestat' doesn't sound right at all. Option D is the correct command to use.
upvoted 0 times
...
Dulce
10 months ago
I agree, 'neestat' doesn't even make sense. Option D is definitely the best choice.
upvoted 0 times
...
...
Sueann
11 months ago
Hmm, I'm not so sure. Isn't neestat something you do when you're feeling a little under the weather? I think I'll go with option A, just to be safe.
upvoted 0 times
Tabetha
10 months ago
I think I'll go with neestat too, thanks for the info.
upvoted 0 times
...
Kris
10 months ago
I agree, neestat is the right command to check for running services.
upvoted 0 times
...
Antonio
10 months ago
Oh, I didn't know that. Thanks for clarifying.
upvoted 0 times
...
Asuncion
11 months ago
neestat is not for when you're sick, it's a command for network statistics.
upvoted 0 times
...
...
Edna
11 months ago
I think the answer is C) neestat -tulpn because it shows all the network connections and listening ports.
upvoted 0 times
...
Lavina
12 months ago
I'm with you, dude. neestat is where it's at. Gotta love that command, am I right? Rolls right off the tongue.
upvoted 0 times
...
Chi
12 months ago
Option C all the way! That's the one that'll give us the deets on that FTP port. No need for all that other mumbo jumbo.
upvoted 0 times
Pa
11 months ago
Let's use neestat -tulpn to get the info we need.
upvoted 0 times
...
Nicolette
11 months ago
Yeah, I agree. No need for the other commands.
upvoted 0 times
...
Jina
11 months ago
Option C is the way to go. It'll show us the FTP port.
upvoted 0 times
...
...

Save Cancel