Re:Reverse engineering a mysterious UDP stream in my hotel (...
by uhinter on Thursday April 01, 2021 @01:59PM
(#26663939)
I dont understand this step . How does skipping n+1 number of bytes help in capturing the correct file ?
Re:Reverse engineering a mysterious UDP stream in my hotel (...
by pottertheotter on Thursday April 01, 2021 @02:11PM
(#26664087)
The assumption is that the packet is something like header + file (I don't know if header is the right terminology). You don't know how many bytes the header is, so you increment the header length until the remaining bytes are recognized as a file.
Re:Reverse engineering a mysterious UDP stream in my hotel (...
by bunfunton on Thursday April 01, 2021 @02:09PM
(#26664050)
AFAIK often the file type signature is in the beginning of the data, however a proprietary elevator music solution could add their custom headers to the beginning of the stream, or, he might have captured data midstream
Re:Reverse engineering a mysterious UDP stream in my hotel (...
by uhinter on Thursday April 01, 2021 @02:24PM
(#26664230)
Thanks. That was helpful.
Re:Reverse engineering a mysterious UDP stream in my hotel (...
by knaik94 on Thursday April 01, 2021 @02:08PM
(#26664042)
It's a way to find the start of the file header when you don't know the original offset. You have to have an idea about the target header format, and in this article the author was looking for an audio stream because each packet ended with LAME3.91UUUUUUU which is an mp3 audio encoder with a funny acronym. You use n+1 so each at each packet you're looking at a different part of the packet.
Re:Reverse engineering a mysterious UDP stream in my hotel (...
by fastball on Thursday April 01, 2021 @02:09PM
(#26664055)
The idea is that the file within the byte stream does not have a clear start marker (due to the unknown length of the customer headers), so you bruteforce trying to find the file.
There is a useful tool called ‘binwalk’ that goes through a binary offset by offset looking for signatures like this. Don’t know if it would’ve worked here, but it’s pretty awesome for finding various data formats hidden in files, and was originally made for analyzing firmware files.