CompTIA PenTest+ PT0-003 (V3) Practice Question

A penetration tester has gained access to a compromised Windows server. The tester needs to search all .log files in the C:\ProgramData\AppLogs\ directory and its subdirectories for the IP address 10.100.50.25. The output must include the line number for each match to help with contextual analysis. Which of the following commands would most efficiently achieve this task?

  • strings C:\ProgramData\AppLogs\*.log | findstr "10.100.50.25"

  • findstr /i "10.100.50.25" C:\ProgramData\AppLogs\*.log

  • findstr /s /n "10.100.50.25" C:\ProgramData\AppLogs\*.log

  • grep -r -n "10.100.50.25" C:\ProgramData\AppLogs\

CompTIA PenTest+ PT0-003 (V3)
Post-exploitation and Lateral Movement
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 PenTest+ Voucher with Retake
v3 / PT0-003
Includes Retake
$474.00 $417.00
Bash, the Crucial Exams Chat Bot
AI Bot