CompTIA Server+ (SK0-005) — Question 343
A senior administrator instructs a technician to run the following script on a Linux server:
for i in {1..65536}; do echo $i; telnet localhost $i; done
The script mostly returns the following message: Connection refused. However, there are several entries in the console display that look like this:
80
Connected to localhost -
443
Connected to localhost -
Which of the following actions should the technician perform NEXT?
Answer options
- A. Look for an unauthorized HTTP service on this server.
- B. Look for a virus infection on this server.
- C. Look for an unauthorized Telnet service on this server.
- D. Look for an unauthorized port scanning service on this server.
Correct answer: A
Explanation
The correct answer is A because the successful connections on ports 80 and 443 indicate that an HTTP service is running, which may be unauthorized. Option B is incorrect as there's no evidence of a virus infection. Option C is not applicable since the script is not finding unauthorized Telnet services, and option D does not relate to the observations made during the script execution.