
Enumeration
This guide contains the answer and steps necessary to get to them for the Enumeration room.
Table of contents
- Introduction
- Purpose
- Linux Enumeration
- Windows Enumeration
- DNS, SMB, and SNMP
- More Tools for Windows
Introduction
-
What command would you use to start the PowerShell interactive command line?
The answer can be found in the text.
Click for answer
powershell.exe
Purpose
-
In SSH key-based authentication, which key does the client need?
The answer can be found in the text.
Click for answer
Linux Enumeration
-
What is the name of the Linux distribution used in the VM?
Checking for release files gives us a file we should read.
consolels -lh /etc/*-release cat /etc/os-release
Click for answer
Ubuntu -
What is its version number?
This can be found with the previous command.
Click for answer
20.04.4 -
What is the name of the user who last logged in to the system?
To get the last user logged into the system we run
last.
Click for answer
randa -
What is the highest listening TCP port number?
To get this we should use
netstattogether with 'ltn'. Otherwise it will resolve the ip and ports. Now we should get the numerical value.consolenetstat -lnt
Click for answer
6667 -
What is the program name of the service listening on it?
To get the program associated with the port, we nust add '-p' and run netstat with sudo.
consolesudo netstat -lntp
Click for answer
inspircd -
There is a script running in the background. Its name starts with THM. What is the name of the script?
To list running programs and filter on the script we can use:
consoleps -aux | grep THM
Click for answer
THM-24765.sh
Windows Enumeration
-
What is the full OS Name?
Use
systeminfoto find this information.
Click for answer
Microsoft Windows Server 2019 Datacenter -
What is the OS Version?
This can be found with the previous command.
Click for answer
10.0.17763 -
How many hotfixes are installed on this MS Windows Server?
We can use
wmicfor this.consolewmic qfe get Caption,Description wmic qfe get Caption,Description | Measure-Object -LineThe second command should give us the amount of updates applied. We must however subtract one from this number as it will include the column header.

Click for answer
-
What is the lowest TCP port number listening on the system?
For this we should use
netstat. Use -n to list the numerical values.
Click for answer
22 -
What is the name of the program listening on that port?
In the previous image we can see the binary that is associated with that port.
Click for answer
sshd.exe
DNS, SMB, and SNMP
-
Knowing that the domain name on the MS Windows Server of IP 10.10.150.82 is redteam.thm, use dig to carry out a domain transfer. What is the flag that you get in the records?
The dig command must be executed on the attackbox itself.
consoledig -t AXFR redteam.thm @10.10.223.16
Click for answer
THM{DNS_ZONE} -
What is the name of the share available over SMB protocol and starts with THM?
To see the available shares, we can use
net share.
Click for answer
THM{829738} -
Knowing that the community string used by the SNMP service is public, use snmpcheck to collect information about the MS Windows Server of IP 10.10.150.82. What is the location specified?
Again, this command will be run on our attackbox.
consolesnmpcheck 10.10.223.16 -c public
Click for answer
THM{SNMP_SERVICE}
More Tools for Windows
-
What utility from Sysinternals Suite shows the logged-in users?
The answers can be found in the text.
Click for answer
PsLoggedOn