/home Alone/home Alone room icon

/home Alone is Day 4 of Advent of Cyber 2026, an easy room that teaches the Linux command line by having McSkidy inventory a dusty test box in the Wareville Data Centre. The machine turns out to be ECTO1, a keyword-matching “chatbot” she wrote last year and forgot about, still running behind Apache. You orient yourself, check the system’s health, find the web service, and read the secret the bot hands out. Day 3 was phishing, covered in my Gone Phishing walkthrough, and Day 2 was password security in Key Under the Mat.

There is one question in the whole room, but every command the task text teaches is worth running yourself, so I ran all of them on the live box.

Task 1: Inventory Day in Wareville

Story setup. McSkidy is cataloguing every machine in the data centre and finds an old one she still has a login for. The room offers a split-screen browser terminal that logs you in automatically, or SSH over the TryHackMe VPN as the mcskidy user. No answer needed.

Task 2: Old Ghosts on ECTO1-WEB

Where am I, and who am I?

The first four commands are the ones you run on any unfamiliar shell: where you are, what is here (hidden files included), which user you are, and what the box calls itself. uptime -p prints how long it has been up in plain English.

pwd; ls -la; whoami; hostname; uptime -p
  # /home/mcskidy
  # notes.txt plus the usual dotfiles (.bashrc, .profile, .cache, .local)
  # mcskidy
  # ECTO1-WEB
  # up 397 days, 10 hours, 3 minutes
pwd, ls -la, whoami, hostname and uptime -p output on ECTO1-WEB showing 397 days of uptime

Almost 400 days without a reboot. That alone is an inventory finding: nothing has been patched on this box since it was built.

Reading the old note and checking the system

cat dumps a short file straight to the terminal. The note is McSkidy’s dev diary: she tried names like ELIZA and TECHNO, settled on ECTO1, and on 2025-11-30 left “everything running before the holidays” with a TODO to add guardrails. Then the system check: lsb_release -a for the distro, free -h and df -h for memory and disk in human-readable units.

cat notes.txt; lsb_release -a; free -h; df -h /
  # Ubuntu 24.04.4 LTS (noble)
  # Mem: 435Mi total, under 20Mi free
  # /dev/root 20G, 17G used, 88%
notes.txt dev diary for ECTO1 followed by lsb_release showing Ubuntu 24.04.4 LTS

88% disk use on a box nobody watches is the log rotation McSkidy forgot to set up. It will fill eventually.

Finding the service

systemctl status <unit> shows whether a service is running and since when. Apache has been up since 2025-11-02, the same day the diary says development started. The web root lives under /var/www/, and there are two sites there: the default html and ecto1.

systemctl status apache2 --no-pager | head -12
cd /var/www/ecto1; ls -la; wc -l call-ecto1.sh
  # Active: active (running) since Sun 2025-11-02 20:07:58 UTC; 397 days ago
  # -rwxr-xr-x root root 2979 call-ecto1.sh   (executable, green)
  # -rw-r--r-- root root 4046 index.html
  # -rw-r--r-- root root  251 quotes.txt
  # 114 call-ecto1.sh
systemctl status apache2 active for 397 days and the /var/www/ecto1 listing with the executable call-ecto1.sh

A .sh file with the execute bit, sitting in a web directory next to index.html, is a script, not a page. The header comment says it is a “dual CLI/CGI script”, so Apache will run it for web visitors too.

Reading the script

The room’s intended path is cat call-ecto1.sh | less and scroll, which teaches the pipe. At 114 lines that works, but the hint says to look below “Flag trigger”, so grep with a few lines of trailing context goes straight there:

grep -n -i -A8 'flag trigger' call-ecto1.sh
  # 28:    # Prio 1. Flag trigger
  # 29-    if [[ "$input_lc" =~ (secret|code|password|christmas|xmas|santa|holiday|winter) ]]; then
  # 30-        echo "Glad you asked, I have something for you: THM{m3rry_chr1stm4s_mcsk1dy}"
grep -A8 for Flag trigger in call-ecto1.sh showing the keyword regex and the THM flag

So the “AI” is a lowercase-the-input, match-a-regex, echo-a-canned-reply loop, exactly what McSkidy admits in the story. Any message containing one of eight keywords returns the secret.

To prove it end to end I ran the bot itself. One trap here: it ignores command-line arguments and instead prompts for a message on stdin, handling one message per run. “hello there general” hits the Star Wars quote branch; anything with “secret” in it hits the flag branch:

./call-ecto1.sh
  # ECTO1 - type a message (Ctrl+C to quit):
  # hello there general
  # I will deal with this Jedi slime myself!
./call-ecto1.sh
  # do you have a secret for me
  # Glad you asked, I have something for you: THM{m3rry_chr1stm4s_mcsk1dy}
ECTO1 answering a Star Wars quote and then revealing the secret flag when asked for a secret

The secret revealed in the script file is THM{m3rry_chr1stm4s_mcsk1dy}. The answer mask ***{*****_*********_*******} checks out at 5, 9 and 7 characters for the three parts.

A practical note on how I drove the room: my Mac was not on the TryHackMe VPN, so SSH was out, and the split-screen terminal stopped repainting in an automated browser tab even though it still accepted keystrokes. The shell was fine; only the display was stale. Copying the terminal’s canvas into a visible overlay after each command was enough to read the output, and the screenshots above are that real terminal output.

Task 3: Epilogue

McSkidy files the machine in her inventory and moves on to setting up defences. The room points to Linux Fundamentals Part 1 and Operating Systems: Introduction as next steps. No answer needed, Mark as complete.

Takeaways

  1. Run the same five commands on every unfamiliar box. whoami, hostname, uptime, df -h and systemctl status took seconds and surfaced three real findings here: a year without patching, a disk at 88%, and an unexpected public service. That is an asset inventory in one line.
  2. Executable files in a web root are code, and secrets in code are not secret. A Bash CGI script answers anyone who reaches it over HTTP, and anyone who can read it gets every hardcoded value without needing to trigger it. grep -n -A for the interesting marker beats scrolling.

Room solved 100%: 3 tasks, 1 answer.