> For the complete documentation index, see [llms.txt](https://alham-rizvi.gitbook.io/alhamrizvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/forensics/blast-from-the-past.md).

# picoCTF – Metadata Timestamp Fix (Fast Writeup)

This challenge was about fixing hidden metadata inside an image so a remote server would accept it.

## Step 1 – Find the hidden timestamp

Using a hex editor (Bless), I found this string inside the image:

```
Image_UTC_Data1700513181420
```

The number at the end is an **epoch timestamp**.

***

## Step 2 – Modify the timestamp

The challenge hint suggested going back to the start of epoch time.

So I replaced the value with:

```
0000000000001
```

Final string:

```
Image_UTC_Data0000000000001
```

Important:

* Replaced **exactly 13 bytes**
* Did not add/remove anything (to avoid corrupting file)

***

## Step 3 – Verify

```
strings original_modified.jpg | grep Image_UTC_Data
```

Output:

```
Image_UTC_Data0000000000001
```

***

## Step 4 – Fix EXIF timestamp

The server also checks metadata time, so I aligned EXIF fields:

```
exiftool \
-DateTimeOriginal="1970:01:01 00:00:00" \
-ModifyDate="1970:01:01 00:00:00" \
-SubSecTimeOriginal=001 \
-SubSecTimeDigitized=001 \
-SubSecTime=001 \
-overwrite_original \
original_modified.jpg
```

This matches:

```
1970:01:01 00:00:00.001
```

***

## Step 5 – Send file

```
nc mimas.picoctf.net <port> < original_modified.jpg
```

## Key Idea

The challenge validates:

* Raw embedded timestamp (hex edit)
* EXIF timestamp consistency

So both needed to match the **epoch start time**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/forensics/blast-from-the-past.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
