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 PT0-003 Exam - Topic 3 Question 33 Discussion

Posted by Elenor on Mar 07, 2026 at 02:09 AM

[Tools and Code Analysis]

During an assessment, a penetration tester gains access to one of the internal hosts. Given the following command:

schtasks /create /sc onlogon /tn "Windows Update" /tr "cmd.exe /c reverse_shell.exe"

Which of the following is the penetration tester trying to do with this code?

Suggested Answer: B

The command creates a scheduled task that executes a reverse shell payload at logon, ensuring persistence.

Option A (Enumerate tasks) : This command creates a task, not lists tasks (schtasks /query is used for enumeration).

Option B (Establish persistence) : Correct.

The attacker ensures a reverse shell opens every time a user logs in.

Option C (Deactivate Windows Update) : The task is named 'Windows Update' but does not disable updates.

Option D (Create a Windows Update binary) : This executes a reverse shell, not a system update.

Reference: CompTIA PenTest+ PT0-003 Official Guide -- Windows Persistence Techniques


Get Premium PT0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
AS
Ashleigh 1 month ago
Definitely B. It allows the attacker to maintain access.
RU
Rupert 1 month ago
C) Deactivate Windows Update seems off. It's not about deactivation.
SE
Selene 2 months ago
Agreed, that command sets up a task to run on logon.
SH
Shannan 2 months ago
I think it's B) Establish persistence.
VA
Vanesa 2 months ago
I was torn between A and B, but B feels right.
MI
Mignon 2 months ago
Option B makes sense. It keeps the reverse shell active.
SY
Sylvia 2 months ago
Yeah, I agree. The command sets up a task on logon.
MO
Mollie 2 months ago
This question is tricky. I think it's about persistence.
OL
Olive 3 months ago
I was torn between A and B, but B feels right.
YE
Yesenia 3 months ago
Option B makes sense. It keeps the reverse shell active.
RE
Reena 3 months ago
Yeah, I agree. The command sets up a task on logon.
AN
Annice 3 months ago
This question is tricky. I think it's about persistence.
FR
Frederic 3 months ago
I thought schtasks was just for scheduling tasks, not for persistence!
RO
Ronny 4 months ago
This is definitely not for deactivating Windows Update.
RH
Rhea 5 months ago
Wait, is this really how they set up a reverse shell?
AR
Arlean 5 months ago
Totally agree, B is the right choice!
TU
Tu 5 months ago
Looks like they're trying to establish persistence.
WI
Willard 6 months ago
Definitely not creating a binary app, that's for sure.
KR
Kristofer 6 months ago
Surprised they’d use cmd.exe for that! Seems risky.
AR
Ariel 6 months ago
I thought it was to deactivate Windows Update at first.
MI
Michael 6 months ago
Totally agree, that command sets up a reverse shell on logon.
MI
Mira 6 months ago
Looks like they're trying to establish persistence.
SH
Shanda 6 months ago
I definitely lean towards option B, establishing persistence, since it’s creating a task that runs on logon.
TI
Timmy 7 months ago
I’m a bit confused about the options. Could it really be deactivating Windows Update? That seems less likely to me.
MA
Mariko 7 months ago
I remember practicing a similar question where we discussed how scheduled tasks can be exploited for persistence. This feels like the same concept.
GO
Golda 7 months ago
I think the command is trying to establish persistence, but I'm not entirely sure if it could also be used for enumeration.
0/2000 characters

Save Cancel