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

[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?
B) Establish persistence
A) Enumerate the scheduled tasks
C) Deactivate the Windows Update functionality
D) Create a binary application for Windows System Updates

CompTIA PT0-003 Exam - Topic 3 Question 33 Discussion

Actual exam question for CompTIA's PT0-003 exam
Question #: 33
Topic #: 3
[All PT0-003 Questions]

[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?

Show Suggested Answer Hide Answer
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


Contribute your Thoughts:

0/2000 characters
Reena
4 hours ago
Yeah, I agree. The command sets up a task on logon.
upvoted 0 times
...
Annice
5 days ago
This question is tricky. I think it's about persistence.
upvoted 0 times
...
Frederic
10 days ago
I thought schtasks was just for scheduling tasks, not for persistence!
upvoted 0 times
...
Ronny
16 days ago
This is definitely not for deactivating Windows Update.
upvoted 0 times
...
Rhea
2 months ago
Wait, is this really how they set up a reverse shell?
upvoted 0 times
...
Arlean
2 months ago
Totally agree, B is the right choice!
upvoted 0 times
...
Tu
2 months ago
Looks like they're trying to establish persistence.
upvoted 0 times
...
Willard
3 months ago
Definitely not creating a binary app, that's for sure.
upvoted 0 times
...
Kristofer
3 months ago
Surprised they’d use cmd.exe for that! Seems risky.
upvoted 0 times
...
Ariel
3 months ago
I thought it was to deactivate Windows Update at first.
upvoted 0 times
...
Michael
3 months ago
Totally agree, that command sets up a reverse shell on logon.
upvoted 0 times
...
Mira
3 months ago
Looks like they're trying to establish persistence.
upvoted 0 times
...
Shanda
3 months ago
I definitely lean towards option B, establishing persistence, since it’s creating a task that runs on logon.
upvoted 0 times
...
Timmy
4 months ago
I’m a bit confused about the options. Could it really be deactivating Windows Update? That seems less likely to me.
upvoted 0 times
...
Mariko
4 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.
upvoted 0 times
...
Golda
4 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.
upvoted 0 times
...

Save Cancel