- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
缓冲区溢出光速入门(Introduction to the speed of light in buffer overflow).doc
缓冲区溢出光速入门(Introduction to the speed of light in buffer overflow)
Buffer overflow
Application: buffer overflow in interest but the masses always miss the point.
Author: watercloud@
Date: written in 2006-2, revised in 2007-9
Buffer overflow base
When buffer overflows are typically written to an array, the length of data written exceeds the size of the original array definition.
For example, before you defined int buff[10], then the only buff[0] - buff[9] space is when we define buff
The legal space of the application, but when the data is written, the buff[12]=0x10 is out of bounds. C language commonly used
Strcpy, sprintf, strcat, and other functions are very easy to cause buffer overflow problems.
When you look at books written in C language, you usually tell you that unexpected results can occur after the program overflows. In the network security
The art of using buffer overflow in the whole field is to make this unexpected outcome change to our desired result.
See the demo below: buf.c
Buffer overflow example by watercloud@ * / / *
#includestdio.h
Void why_here (void) / * this function does not call any place.
{
Printf (why, u, here, \n);
_exit (0);
}
Int main (int, argc, char * argv[])
{
Int buff[1];
Buff[2]= (int) why_here;
Return 0;
}
On the command line, compiled by the VC command line compiler (compiled and run in Linux under GCC) is the same result:
C:\Tempcl buf.c
Running program:
C:\Tempbuf.exe
Why, u, here?!
By carefully analyzing the program and printing the information, you can see that we have not called the why_here function in the program, but the function has not
Is called at run time!!
The only explanation here is buff[2]=why_here; the operation leads to changes in the program execution flow.
To explain this phenomenon, you need to understand some of the underlying C language (and computer architecture related) and some compilation knowledge, especially
Stack and the compilation of CALL/RET knowledge, if you still have a lack of this, it is recomm
您可能关注的文档
- EPE缓冲包装的优化设计.doc
- 以中为轴融西入体——关于梁实秋文学批评思想渊源初探_论文.docx
- 建设世纪“海上丝绸之路”动机及其与南海问题的关联.doc
- . 技能增强过渡版b使用说明(. skills to enhance the use of transition B instructions).doc
- 获取有益的信息教案.doc
- 新中国中学数学教材建设年.docx
- 2014学年度下学期征长小学校本培训总结.doc
- 什么是白平衡 白平衡的工作原理及应用.doc
- 大学物理II(本科)复习题..doc
- [2017年整理]保护性耕作国内外技术现状和发展趋势.doc
- D游戏无双大蛇图文攻略素材之-.doc
- javascriptdocument对象方法属性大全(Javascriptdocument object method properties Daquan).doc
- pH值对溶胶凝胶法制备SiO多孔薄膜性能影响.doc
- 自考仓储模拟试题(Simulated test questions of self taught warehouse).doc
- 苏教版年级上册语文第、、单元表格教案.doc
- 核桃去皮机设计(有全套cad图纸)如需要请加.doc
- 中国商业互联网年进化曲线( year evolution curve of Chinese Commercial Internet).doc
- 试机n号hi-fi天碟(The test machine n hi-fi Tiandie).doc
- 吨硫磺回收装置硫磺造粒机技术方案.doc
- 2018年浙江高考数学二轮复习教师用书第1部分 重点强化专题 专题2 突破点4 等差数列、等比数列含答案.doc
文档评论(0)