CompTIA CySA+ CS0-003 (V3) Practice Question

You are assisting during an incident-response engagement. The team extracted the .bash_history file from a Linux web server that recently began communicating with unknown external IP addresses. A condensed excerpt of the command history is shown:

ls -la /var/www/html
nmap -sS -p- 10.10.20.0/24 --max-retries 1 -T4 -oG /tmp/scan.txt
grep -i 'password' /etc/passwd
ps aux | grep sshd
tar -czf /tmp/etc.tgz /etc

Based on the commands recorded, which line most clearly indicates that the attacker attempted to discover open ports and services across hosts in the local subnet?

  • ps aux | grep sshd

  • tar -czf /tmp/etc.tgz /etc

  • ls -la /var/www/html

  • nmap -sS -p- 10.10.20.0/24 --max-retries 1 -T4 -oG /tmp/scan.txt

CompTIA CySA+ CS0-003 (V3)
Security Operations
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

SAVE $51
$425.00 $374.00
SAVE $57
CompTIA Cybersecurity Analyst Voucher with Retake
CySA+ / v3 / CS0-003
Includes Retake
$474.00 $417.00
Bash, the Crucial Exams Chat Bot
AI Bot