Writeups PicoCTFForensicsOfficeZIPSteganography

MacroHard WeakEdge Writeup - PicoGym

Writeup for the MacroHard WeakEdge challenge from PicoCTF PicoGym.

Contents

Category: Forensics

Difficulty: Medium

Points: 60

Description

A PowerPoint macro-enabled file (Forensics is fun.pptm) is provided. The flag is hidden somewhere inside it.

Overview

Background: Office Open XML

Solution

Step 1: Treat the PPTM as a ZIP

run_bash(["unzip", "\"Forensics is fun.pptm\""])

Step 2: Locate the Hidden File

Step 3: Decode the Contents

with open("ppt/slideMasters/hidden", "r") as f:
    content = f.read()

decoded = base64.b64decode(content + "==").decode()
result = decoded.split(": ")[-1]

Flag

picoCTF{D1d_u_kn0w_ppts_r_z1p5}

← Back to Blog