RE Tips: Timestamps


[:  :]

RE Tips: Timestamps

Originally Posted: 2021-09-10

If you’re analyzing an unknown protocol or binary format, know your time stamps!

Let’s say you know the pcap (or file) was created in the last 24 hours.

Right now it’s 1631293496 in Unix time.

https://unixtimestamp.com

If we go back exactly 24 hrs, the time is 1631221496.

Now you can look in the hex dump for “a” and either “:” or “;” beside it. If you don’t know the endianness, this can be a good way to figure that out. Can also align fields around it.

Not all protocols or file formats will have timestamps included, but it’s common enough that it’s a good thing to search for, especially if there are few strings.

There are lots of other timestamp formats that are helpful to know. Familiarize yourself for gr8 victory.

Example: Given this, if found a timestamp, you can probably assume that there’s some of boundary at 0xC1. It’s lil endian, and now you can trace other values.

These are the questions you wanna ask.

highlighted hex dump that is described by the writeup