Friday, August 5, 2022

TryHackMe Write-Up | Sysinternals Task 9  Miscellaneous

BgInfo

"It automatically displays relevant information about a Windows computer on the desktop's background, such as the computer name, IP address, service pack version, and more." (official definition)

This is a handy utility if you manage multiple machines. This tool, or similar tools, are typically utilized on servers. When a user RDPs into a server, the system information is displayed on the wallpaper to provide quick information about the server, such as the server's name.

https://assets.tryhackme.com/additional/sysinternals/bginfo.png

Refer to the Sysinternals BgInfo page for more information on installation and usage.

RegJump

"This little command-line applet takes a registry path and makes Regedit open to that path. It accepts root keys in standard (e.g. HKEY_LOCAL_MACHINE) and abbreviated form (e.g. HKLM)." (official definition)

When navigating through the registry using the Registry Editor, one must manually drill down to the key you wish to inspect.

https://assets.tryhackme.com/additional/sysinternals/registry-editor.png

There are multiple ways to query the Windows Registry without using the Registry Editor, such as via the command line (reg query) and PowerShell (Get-Item/Get-ItemProperty).

Using Regjump will open the Registry Editor and automatically open the editor directly at the path, so one doesn't need to navigate it manually.

https://assets.tryhackme.com/additional/sysinternals/regjump0.png

https://assets.tryhackme.com/additional/sysinternals/regjump2.png

Strings

"Strings just scans the file you pass it for UNICODE (or ASCII) strings of a default length of 3 or more UNICODE (or ASCII) characters. Note that it works under Windows 95 as well." (official definition)

This is the tool that was used on Day 21 of AoC2 to inspect a mysterious binary.

The example below strings is used to search within the ZoomIt binary for any string containing the word 'zoom'.

https://assets.tryhackme.com/additional/sysinternals/strings.png

Other tools fall under the Miscellaneous category. I encourage you to explore these tools at your own leisure.

Link: https://docs.microsoft.com/en-us/sysinternals/downloads/misc-utilities

Answer the questions below

Run the Strings tool on ZoomIt.exe. What is the full path to the .pdb file?

How to: Have cmd opened, use command powershell to allow powershell commands to be used. Move over to the sysinternals directory with cd C:\Tools\sysint . Once in this directory use the command strings .\ZoomIt.exe | findstr .pdb . This will only display any strings in the ZoomIt.exe file that have a .pdb in them. So when it is finished you should see two results. Copy the first one and paste it in the answer box. 

Answer: C:\agent\_work\112\s\Win32\Release\ZoomIt.pdb

No comments:

Post a Comment

TryHackMe Write-Up | Sysinternals Task 9  Miscellaneous

BgInfo "It automatically displays relevant information about a Windows computer on the desktop's background, such as the computer ...