🔬
CTFs
  • 🚩nitrozeus's CTF Writeups
  • Tutorial
    • Install Windows 10 VM on M1 Mac
  • My Notes
    • Capture-The-Flag
      • Windows Forensics
      • Memory Forensics
      • Base32, Base64
      • Steganography
      • Email Analysis
      • Malware Analysis
      • MD4, MD5 Cracking
      • Social Engineering
      • OSINT
      • Google Dorking
      • Reconnaissance
      • Port Scan (nmap)
  • 2023
    • 🧠BrainHack CDDC 2023
      • Gallery
      • Eazy Network Analysis
      • What the hell happened to the PC?!
      • Audio Steganography
  • 2022
    • 🐱Grey Cat The Flag 2022
      • Parcel
      • Memory Game (Part 1)
      • Too Fast
      • Entry
      • Ghost
      • Firmware
      • Image Upload
      • flappy-js
    • ⛵STANDCON 2022
      • I Sea You (Part 1)
      • Locate Me
      • I Sea You (Part 2)
      • Trolley Trolling
      • A New Gateway
      • Walks like a cat, barks like a dog
      • Shark in the Ocean
      • Atlan Safe P1
      • Gift from Russia
      • Asmuth Shares
      • Memedump
      • Warmup Forensics
    • 🦁STACK the Flags 2022
      • Finding Nyan
      • New Task!
      • Hit you with that
      • Cobalt Struck
      • PyRunner
Powered by GitBook
On this page
  1. 2022
  2. STANDCON 2022

Memedump

memory dump dump dump! Forensics!

PreviousAsmuth SharesNextWarmup Forensics

Last updated 2 years ago

Additional Information: We did not manage to solve this challenge during the CTF, but we tried it after the event was over, and we managed to solve the challenge!

I too would like to be a professional meme maker. Sadly, I lack the skill or talent to make such amazing memes. BUT... and hear me out, I got hold of someone's laptop full of dank memes. Well not the laptop, just the memory of the laptop. With this, I should be able to copy all his memes right????

We were given a huge .raw file (1 GB) in size (). From the title of the challenge, we suspected that it is probably a file.

As always, we ran the file command to check what type of file is it.

Next, we ran the binwalk to give us more information! The results given was astonishingly large!!

This helps us find out what type of Operating System (OS) that was used.

vol.py -f memedump.raw imageinfo

From the results, under Suggested Profile(s), tells us that the OS used is Windows! The profile is thus Win7SP0x86

Using the profile, we can check for the list of processes that were running at the time of acquisition.

vol.py -f memedump.raw pslist --profile=Win7SP0x86

Take note of the PID of mspaint.exe which is 1464 as we will get back to it later.

Before further investigating mspaint.exe, we looked for other possibilities that could be a flag. We checked the list of files under Users.

vol.py -f memedump.raw --profile=Win7SP0x86 filescan | grep '.*Users.*'

We noticed a few images named "flag" and when we extracted all of them out, it was just a bunch of memes. So, we moved our focus back to mspaint.exe

We extracted mspaint.exe memory using its PID.

vol.py memedump.raw --profile=Win7SP0x86 memdump -p 1464 --dump-dir=.

After doing so, we renamed our exported 1464.dmp file to 1464.data so that it can be recognized by Gimp, and then opened it in Gimp.

With some trial and error, the correct offset, width and height can be found.

Offset: 192318395

Height: 1198

Width: 953

Flag: STANDCON22{meme_mem_dump}

Challenge Files

The challenge file was too big to upload here :(

File size: 1 GB

Results tells us that it is a data file, not so helpful eh?

There were various description given from the results, and we noticed Microsoft executable, portable (PE), therefore, confirms our suspicion that this is a memory dump!

We immediately fired up our trusty , a memory forensic tool!

First things first, we have to find out the profile of the memory dump (memdump) via plugin.

From the process list results, we noticed mspaint.exe and after Googling around, we found an interesting regarding about Volatility and mspaint! We used that as a guide to solve this challenge.

Et voila! We managed to get the flag!!

⛵
😢
👏
🎉
🎉
Volatility
imageinfo
🤯
write-up
What is a RAW file
memory dump
binwalk 1st half
binwalk 2nd half
memdump
pslist
list of files under Users folder
flag!!!
data
👍