> 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/macrohard_weakedge.md).

# macrohard\_weakedge

In this challenge, we were given a **.pptm file**. After checking many slides for the flag, I couldn't find anything. So I decided to inspect the file using the **strings** command and noticed some content suggesting that the file might actually contain a **ZIP archive**.

To confirm this, I used **Binwalk** to analyze the file, and it showed that there was indeed a ZIP archive embedded inside it. I then extracted it.

After spending a lot of time searching, I realized that the **grep** command wasn't able to find the flag because it was **not in a readable format**.

While exploring the extracted files, I navigated to:

```
./ppt/slideMasters/hidden
```

Inside this file I found the following text:

```
Z m x h Z z o g c G l j b 0 N U R n t E M W R f d V 9 r b j B 3 X 3 B w d H N f c l 9 6 M X A 1 f Q
```

This did not look like any common substitution cipher. However, it looked similar to **Base64 encoding**, so I decided to try decoding it.

First, I wrote a small script to remove the spaces:

```python
s = "Z m x h Z z o g c G l j b 0 N U R n t E M W R f d V 9 r b j B 3 X 3 B w d H N f c l 9 6 M X A 1 f Q"
s = s.split(" ")
print("".join(s))
```

Output:

```
ZmxhZzogcGljb0NURntEMWRfdV9rbjB3X3BwdHNfcl96MXA1fQ
```


---

# 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/macrohard_weakedge.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.
