- 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
This assignment helps you develop a detailed understanding of the calling stack organization on an IA32 processor. It involves applying a series of buffer overflow attacks on an executable file bufbomb in the lab directory.
Note: In this lab, you will gain firsthand experience with one of the methods commonly used to exploit security weaknesses in operating systems and network servers. Our purpose is to help you learn about the runtime operation of programs and to understand the nature of this form of security weakness so that you can avoid it when you write system code. We do not condone the use of these or any other form of attack to gain unauthorized access to any system resources. There are criminal statutes governing such activities.
Login the Server
Everyone has an account on our Server, the address is 10.13.75.177, and username is stu+ your student number (ex:stu0472001), the default password is csapp2007. You can get the access with putty.
Start by copying buflab-handout.tar to a (protected) directory in which you plan to do your work. Then give the command “tar xvf buflab-handout.tar”. This will cause a number of files to be unpacked in the directory:
MAKECOOKIE: Generates a “cookie” based on your name.
BUFBOMB: The code you will attack.
SENDSTRING: A utility to help convert between string formats.
All of these programs are compiled to run on Linux machines. In the following instructions, we will assume that you have copied the three programs to a protected local directory, and that you are executing them in that local directory.
Get your cookie
A cookie is a string of eight hexadecimal digits that is (with high probability) unique to your name. You can generate your cookie with the makecookie program giving your name as the argument. For example:
unix ./makecookie bovik
0x78327b66
The BUFBOMB Program
The BUFBOMB program reads a string from standard input with a function getbuf having the following C code:
1 int getbuf()
2 {
3 char buf[12];
您可能关注的文档
最近下载
- 钢筋工“晨会”“班前会”讲话内容.docx VIP
- 声学基础许肖梅 著课后习题答案 科学出版社资料资料资料.pdf VIP
- 如何选择数码相机.pptx VIP
- 新苏教版科学六年级上实验报告单.docx VIP
- 新苏教版科学六年级上实验报告单.pdf VIP
- 职业技术学院畜禽生产技术专业人才培养方案.pdf VIP
- 省级工法-斜屋面盘扣架顶部支撑施工工法.pdf VIP
- 2024-2025学年北京七年级语文上学期期中试题分类汇编:作文-.pdf VIP
- TZGCMCA 008.1-2024 建筑信息模型 数据资产价值评估规范 第1部分:公路工程.pdf VIP
- 红色文化融入中学美育课程的教学模式研究.docx VIP
文档评论(0)