Skip to content

Mail Detective⚓︎

Difficulty:
Direct link: Mail Detective

Objective⚓︎

Request

Help Mo in City Hall solve a curly email caper and crack the IMAP case. What is the URL of the pastebin service the gnomes are using?

Maurice Wilson

Screenshot 2026-04-21 154523

Solution⚓︎

According to Maurice, the gnomes have been sending JavaScript-enabled emails to the neighborhood, and the only safe way to access the email server is through curl. Maurice asked me to connect to the IMAP server and hunt down one of the gnomes' emails.

I started by listing the available mailboxes with a basic IMAP connection using the command:

List mailboxes
1
curl -u dosismail:holidaymagic imap://localhost

This showed that the mailbox contains: Spam, Sent, Archives, Drafts and Inbox.

Screenshot 2025-12-31 112950

I decided to check the inbox. I used the following command to check the number of emails and their status:

Select INBOX
2
curl -u dosimail:holidaymagic imap://localhost -X "SELECT INBOX"

The response showed the inbox had seven emails and one unseen.

Screenshot 2025-12-31 113004

I pulled the header of the first message using the command:

Read INBOX message headers
3
curl -u dosismail:holidaymagic "imap://localhost/INBOX;MAILINDEX=1;SECTION=HEADER"

The email was sent from a local neighborhood address, so it did not need further investigation.

Screenshot 2025-12-31 114152

Next, I checked the Spam folder:

Examine Spam
4
curl -u dosismail:holidaymagic "imap://localhost/INBOX" -X "EXAMINE Spam"

The output showed three spam messages, two unseen.

Screenshot 2025-12-31 115942

I reviewed the second spam message headers:

Read Spam message headers
5
curl -u dosismail:holidaymagic "imap://localhost/Spam;MAILINDEX=2;SECTION=HEADER"

The message came from an external address frost-command.mysterymastermind.mail and needed closer review.

Screenshot 2025-12-31 120616

I opened the body of the spam message:

Read Spam message body
6
curl -u dosismail:holidaymagic "imap://localhost/Spam;MAILINDEX=2;SECTION=TEXT"

The email contained a crypto miner JavaScript function. This confirmed what Maurice said.

Screenshot 2025-12-31 120730

I looked through the rest of the email and found the paste bin URL. The URL was: https://frostbin.atnas.mail/api/paste.

Screenshot 2025-12-31 121457

The objective was added to the achievements list.

Screenshot 2026-05-27 193031

Answer

https://frostbin.atnas.mail/api/paste

Response⚓︎

Maurice Wilson

Outstanding work! You've mastered using curl for IMAP - that's some serious command-line skills that would make any Air Force tech proud.