← Back to list

Linux Privilege Escalation: Enumeration | TryHackMe | Walkthrough

Task 3 OS Enumeration

Sornphut · 2026-05-20 04:17 · 4 claps · 2.2 min read
#tryhackme #tryhackme-walkthrough #tryhackme-writeup #linux #enumeration
Open on Medium ↗
Wiki topics: 🔓 · Open Source

Linux Privilege Escalation: Enumeration | TryHackMe | Walkthrough

https://tryhackme.com/room/linprivenum

https://tryhackme.com/room/linprivenum

Task 3 OS Enumeration

What is the hostname of the target host?

linux-enumeration

uname -a

uname -a

What is the Linux kernel version of the target host?

6.8.0-1017-aws

cat /proc/version

cat /proc/version

What version of Ubuntu is running on the host?

Ubuntu 24.04.1 LTS

cat /etc/issue

cat /etc/issue

What is the full path of the script run by root every 5 minutes?

/root/backup.sh

cat /etc/crontab

cat /etc/crontab

What is the full version of AppArmor?

4.0.1really4.0.1-0ubuntu0.24.04.3

dpkg -l

dpkg -l

Task 4 User Enumeration

Print the environment variables. What is the value of LANG?

C.UTF-8

env

env

What is the flag in your history?

THM{history-is-not-safe}

history

history

What is the full path of the command you are allowed to run with elevated privileges?

/usr/bin/nmap

sudo -l

sudo -l

What is the username of the Mailing List Manager?

list

cat /etc/passwd

cat /etc/passwd

Task 5 Network Enumeration

What is the name of the network interface, other than loopback?

ens5

ifconfig

ifconfig

What port, other than 22, is listening on the host?

53

netstat -tulnp

netstat -tulnp

Task 6 File Enumeration

What are the contents of the secret file in your home folder?

THM{not-so-hidden}

ls -la

ls -la

Find a file that has TryHackMe in its name. What is its content?

THM{found-the-flag}

find / -type f -name “*TryHackMe*” 2>/dev/null

find / -type f -name “TryHackMe” 2>/dev/null

cat /var/local/TryHackMe-flag.txt

cat /var/local/TryHackMe-flag.txt


메타데이터
post_id
ac8a24133994
slug
linux-privilege-escalation-enumeration-tryhackme-walkthrough-ac8a24133994
url
https://medium.com/@sornphut/linux-privilege-escalation-enumeration-tryhackme-walkthrough-ac8a24133994
canonical_url
https://medium.com/@sornphut/linux-privilege-escalation-enumeration-tryhackme-walkthrough-ac8a24133994
author_url
https://medium.com/@sornphut
status
ok
fetched_at
2026-07-10 13:01:02