MemLab 2

Challenge Description

One of the clients of our company, lost the access to his system due to an unknown error. He is supposedly a very popular “environmental” activist. As a part of the investigation, he told us that his go to applications are browsers, his password managers etc. We hope that you can dig into this memory dump and find his important stuff and give it back to us.

Note: This challenge is composed of 3 flags.

Write Up

I have to find the profile first. -f MemoryDump_Lab2.raw imageinfo

Let’s see what process it was running. -f MemoryDump_Lab2.raw --profile=Win7SP1x64 pslist

I found Chrome, KeePass, and Notepad.


As the challenge highlighted the word “environmental” , let’s take a look at the environmental variables. -f MemoryDump_Lab2.raw --profile=Win7SP1x64 envars

We found this New_TMP variable in every process and it looks like base64. After decoding we found our first flag.

FLAG 1 → flag{w3lc0m3T0$T4g3_!_Of_L4B_2}


Lets look at the KeePass. KeePass extension is .kdbx and we need to find the password to open the file. Lets look for them. -f MemoryDump_Lab2.raw --profile=Win7SP1x64 filescan | grep .kdbx -i -f MemoryDump_Lab2.raw --profile=Win7SP1x64 filescan | grep password -i

Lets dump the Password.png and open Hidden.kdbx with the password. -f MemoryDump_Lab2.raw --profile=Win7SP1x64 dumpfiles -Q 0x000000003fb112a0 -D . -f MemoryDump_Lab2.raw --profile=Win7SP1x64 dumpfiles -Q 0x000000003fce1c70 -D .

FLAG 2 → flag{w0w_th1s_1s_Th3SeC0nD_ST4g3!!}


Next as per the challenge, we check the browser. Let’s look for interesting files and grep chrome. -f MemoryDump_Lab2.raw --profile=Win7SP1x64 filescan | grep chrome -i

After looking for a little bit I found history. Lets dump the file and look at the content. -f MemoryDump_Lab2.raw --profile=Win7SP1x64 dumpfiles -Q 0x000000003fcfb1d0 -D .

We need to install the SQLite browser in order to open the file. After checking the history I found a []( link.

snap install sqlitebrowser

After visiting the website I found a zip file. The file is password protected but it gives us a note.

Password → 6045dd90029719a039fd2d2ebcca718439dd100a

And we found our final flag.

FLAG 3 → flag{oK_So_Now_St4g3_3_is_DoNE!!}

updated_at 20-10-2022