Skip to content

Dump graphics drawn using DrawDibDraw (msvfw32.dll / vfw.h)

License

Notifications You must be signed in to change notification settings

theXappy/DumpDibDump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DumpDibDump

This project helps you dump graphics drawn by Windows applicatin which use the DrawDibDraw API. It uses Frida and Pymem to hook the method and dump the bitmap from memory.

Installation

  1. Install Frida
  2. Install Pymem pip install pymem
  3. Clone this repo

Usage

  1. Edit invoke_frida.py: Change TARGET_PROCESS = "my_target.exe" to the name of your target.
  2. Run the python script.
  3. Interact with your target to make it draw the bitmap(s) you'd like to dump.

Images will be dumped to the CWD where you ran python.

Optional: If you app has a lot of small bitmaps (usually UI stuff: button, scroll bars...) you can set a size threshold to filter those out. Uncomment this code in the .js file change the threshold as your target requires:

    // ------------------------------------------------------------------------------
    // Uncomment to filter SMALL BITMAPS (change bytes limit as your target requires)
    // ------------------------------------------------------------------------------
    // Read raw bytes of BITMAPINFOHEADER structure
    // let biSizeImageAddress = new NativePointer(lpbi).add(20);
    // let biSizeImage = biSizeImageAddress.readInt();
    // if (biSizeImage < 29500 /* bytes */) {
    //  return;
    // }

About

Dump graphics drawn using DrawDibDraw (msvfw32.dll / vfw.h)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published