Sitemap

CHATTY PRINTER

5 min readFeb 10, 2026

--

NETWORK FORENSICS WALK-THROUGH

This is the official walk-through, from the creator of the “chatty printer” challenge. Organized for cybersecurity enthusiasts at Multi-media university of Kenya during the hack-night 1.0

Recently, we have seen a rise in the use of smart devices both in our homes and offices. How are we sure the devices are not connecting and exfiltrating data to other parties and servers? In this challenge, we are supposed to check on how a printer communicates with other parties. The printer being monitored here was feeding data to a suspicious server, we are supposed to check it out and understand how this works. By the end of the challenge, you will have understood the protocol used by smart devices such as printers, you will have understood analyzing those packets using wire-shark.

challenge description:
The office manager noticed that the new ‘smart’ printer in the HR department is acting strange. It’s printing fine, but the network logs show it’s talking to an outside server every few minutes. We captured the traffic. Your job is to find out what it’s sending and where the secret flag is hidden.

We are given a zip file, we download the zip file and extract the contents inside it, we get a capture.pcapng file. we open it using the normal wireshark tool, which comes pre-installed in kali-linux machines.

Press enter or click to view image in full size
View of the capture file

one can see different types of packets, different source ip addresses, different destination ip addresses, different protocols.
Its now a matter of going back to the drawing board and try to narrow down what we need so that we dont waste alot of time. The key words from our description are: printer and network logs. Now its our task to research the kind of protocol used by printers that can be seen from the network logs.

There is a protocol that has been seen to be common in smart/IoT devices. This mostly happens to the newest model with cloud features. The protocol is: MQTT (Message Queuing Telemetry Transport). It happens in two ports, port 1883 (unencrypted) and port 8883 (encrypted)

With that knowledge, we now check for protocols using MQTT and likely to be running on port 1883. We use the filter bar in our wireshark to filter for that specific protocol. Just type mqtt in the filter bar and hit enter.

Press enter or click to view image in full size

We are now down from 182 packets to 10 packets being displayed. Now we can inspect these packets to get the answers to the questions we have.

Question 1: What is the “Client ID” of the printer sending the data?
flag format: s3ns31{CLIENT_ID}

This is a very simple process, after the filtering, just click the first packet. This holds the connection packet of the printer. By double clicking it, expand on the MQ Telementary transport protocol, connect command. it is the last one from the frames seen.

Press enter or click to view image in full size

Notice the client ID there.

Press enter or click to view image in full size

FLAG: s3ns31{HR_Office_Printer_V2}

QUESTION 2: What protocol is being used for the “strange” communication?

We already identified that from our investigation about smart printers and the cloud. The flag is: s3ns31{MQTT}

Press enter or click to view image in full size

QUESTION 3: We learn that there was a connection made to a specific computer at a specific time. what is the operating system of the computer and what time is it said to receive the connection??

Get Kanyoko’s stories in your inbox

Join Medium for free to get updates from this writer.

The trick of this question is that someone would go to look for the connection part in the logs part. The catch was reading the data being sent by the printer. The creator specifically gave that information in plain text in the data being exfiltrated.

We check the log having the info of “/connections”. That is the one having all that information

Press enter or click to view image in full size

By just double clicking it, we can read the message on the new wire-shark window we have. The message has the type of operating system the printer connected to and also a time, which was also in the same text.

Press enter or click to view image in full size

From that message, we understand the operating system is linux operating system and the time is: 12:12:25.

FLAG: s3ns31{linux_12:12:25}

QUESTION 4: Now do the honors and find the flag

We now have to look through and get the flag for this last question. Now this was hidden under “/office/printer/maintenance/raw_logs” packet.

Just by double clicking it, we get the message we need. The flag is not also directly readable from the message we have, you have to decode it.

Press enter or click to view image in full size

In cryptography, whenever we see the “=” character after a text, we understand that the text is likely to be base64 encoded. To get the flag we now have to just copy the message and move to your best decoder. Lets decode it using 2 of the most common and accurate online decoders.

The first one will be cybercheff. Check out and see the results on your browser. The recipe used is “from base64”

Press enter or click to view image in full size

The other decoder is the base64 decoder online

Press enter or click to view image in full size

It is now official. The flag is there.

FLAG: s3ns31{m_q_t_t_is_vulnerable}

Thank you for sticking to the end, I hope you got to understand how smart devices communicate and analyze such network traffic.

HAPPY HACKING!!!!!!

--

--

Kanyoko
Kanyoko

Written by Kanyoko

An interesting cyber security enthusiast who dives into penetration testing and network security.