Reverse Engineering A Mysterious UDP Stream in My HotelHey everyone, I have been staying at a hotel for a while. It鈥檚 one of those modern ones with smart TVs and other connected goodies. I got curious and opened Wireshark, as any tinkerer would do. I was very surprised to see a huge amount of UDP traffic on port 2046. I looked it up but the results were far from useful. This wasn鈥檛 a standard port, so I would have to figure it out manually. At first, I suspected that the data might be a television stream for the TVs, but the packet length seemed too small, even for a single video frame. This article is also available in French. Grabbing the data The UDP packets weren鈥檛 sent to my IP and I wasn鈥檛 doing ARP spoofing, so these packets were sent to everyone. Upon closer inspection, I found out that these were Multicast packets. This basically means that the packets are sent once and received by multiple devices simultaneously. Another thing I noticed was the fact that all of those packets were the same length (634 bytes). I decided to write a Python script to save and analyze this data. First of all, here鈥檚 the code I used to receive Multicast packets. In the following code, 234.0.0.2 is the IP I got from Wireshark. import socket import struct s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind(('', 2046)) mreq = struct.pack("4sl", socket.inet_aton("234.0.0.2"), socket.INADDR_ANY) s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) while True: data = s.recv(2048) print(data) On top of this, I also used binascii to convert this to hex in order make reading the bytes easier. After watching thousands of these packets scroll through the console, I noticed that the first ~15 bytes were the same. These bytes probably indicate the protocol and the packet/command ID but I only received the same one so I couldn鈥檛 investigate those. Audio is so LAME It also took me an embarrassingly lo...
First seen: 2025-12-30 17:04
Last seen: 2025-12-31 07:06