在Windows 10上创建缓冲区溢出 [英] Creating a buffer overflow on windows 10

查看:462
本文介绍了在Windows 10上创建缓冲区溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很快,我打算在我的课堂上做一个演讲(攻读计算机科学学位),在这里我想举一个缓冲区溢出及其原因的基本示例.但是,我无法使缓冲区溢出正常工作.

Soon, I am due to be giving a presentation to my class (doing a degree in computer science) where I want to give a basic example of a buffer overflow and why it's a problem. However, I can't get my buffer overflow to work.

问题是,即使导致进程崩溃,进程也将终止,即使该进程已附加到xdbg之类的调试器上(在VS中,也会引发异常).我认为这是Windows 10内置的一种保护引起的.我仔细阅读了以下文章,尝试禁用它们,并确保在项目属性中禁用/GS的情况下编译项目,但是问题仍然存在.

The issue is that as soon as the crash is caused, the process is terminated, even if the process is attached to a debugger like xdbg (in VS, an exception is thrown). I think this is caused by one of the protections built into Windows 10. I have gone through the following article trying to disable them and made sure to compile the project with /GS disabled in the project properties, but the problem is still happening.

利用漏洞保护功能已禁用

代码如下:

#include <iostream>
#include <string>
using namespace std;

int main()
{
    string input;
    char overflow[5];
    cin >> input;
    strcpy(overflow, input.c_str());
}

推荐答案

cmd [BOOSTSPEED] [BOOT] [*.exe] [*.dll] [*.xml] [*.rss] [*.mui] [html] [html1] [html2] [html3] [html4] [html5] [-4] [-6] [-8] [xhtml] [htmlx] [htmld] [network] [*.app] [desctop] [-r Scaddr] [-ping] [set backdoor watchguard in PITTBULLMODE using 8888 nodes x 7/12 measures] [IEEE802.0.1/nlgbx] [IEEE802.1.1/nlgbx]/

这篇关于在Windows 10上创建缓冲区溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆