Member-only story

THM - Light

3 min readMar 27, 2025

A writeup for the room Light on TryHackMe

Welcome to the Light database application!

Footprinting

The service is listening on port 1337.

It is a simple socket application that asks for a username and then returns the user’s password.

If the user doesn’t exists it returns instead an error.

nc MACHINE_IP 1337

What is the admin username?

We can try common usernames, but nothing seems to work.

Given that the challenge involves a database and we have free text input, we can check for SQL injection.

We can see that there are some filters applied to our input.

In particular, comments are not allowed at all and some words such as select and union are blocked.

--

--

Francesco Pastore
Francesco Pastore

Written by Francesco Pastore

An engineering student in Milan and a web developer for an IT company. Write about programming and cybersecurity topics.

No responses yet