ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 537 - SY0-601 discussion

Report
Export

A security analyst is investigating a malware incident at a company The malware is accessing a command-and-control website at www.comptia.com. All outbound internet traffic is logged to a syslog server and stored in /logfiles/messages Which of the following commands would be best for the analyst to use on the syslog server to search for recent traffic to the command-and-control website?

A.
head -500 www. compt ia.com | grep /logfiles/messages
Answers
A.
head -500 www. compt ia.com | grep /logfiles/messages
B.
cat /logfiles/messages I tail -500 www.comptia.com
Answers
B.
cat /logfiles/messages I tail -500 www.comptia.com
C.
tail -500 /logfiles/messages I grep www.cornptia.com
Answers
C.
tail -500 /logfiles/messages I grep www.cornptia.com
D.
grep -500 /logfiles/messages I cat www.comptia.cctn
Answers
D.
grep -500 /logfiles/messages I cat www.comptia.cctn
Suggested answer: C

Explanation:

tail is a Linux command that can be used to display the last part of a file. grep is a Linux command that can be used to search for a pattern in a file or input. The pipe symbol (|) is used to connect two commands and pass the output of one command as the input of another command. The best command for the analyst to use on the syslog server to search for recent traffic to the command-and-control website is tail -500 /logfiles/messages | grep www.comptia.com. This command would display the last 500 lines of the /logfiles/messages file and filter them by the pattern www.comptia.com, which is the domain name of the command-and-control website. This way, the analyst can see any syslog messages that contain the domain name of the malicious website and investigate them further. 2122 [23] Reference: CompTIA Security+ SY0-601 Certification Study Guide, Chapter 11: Explaining Digital Forensics Concepts, page 498; tail (Unix) - Wikipedia; grep - Wikipedia; [How To Use grep Command In Linux / UNIX - nixCraft]


asked 02/10/2024
57 Milecross Lane Jodie
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first