Linux信息安全实验.docVIP

  1. 1、本文档共38页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Linux信息安全实验.doc

目录 Set-UID实验 2 Race_Condition实验 19 Shellcode攻击实验 26 Format String Vulnerability lab实验 33 Set-UID实验 分类: 信息安全技术实验 2011-10-14 11:41 2568人阅读 评论(0) 收藏 举报 systemcommandvariablesfileshelllinker ? 写这个blog主要是对自己学习的内容进行一个总结和记录,希望对学习这些知识的同道之人有所帮助,第一次写博文,经验有所不足,我会慢慢练习。 实验操作我是参照了一位比较厉害的师兄,他的set_uid blog:/s/blog_70dz8k.html。希望对大家有所帮助。 这个实验是信息安全实验的第一个实验,共有7个task,每一个task都有截图作为步骤。 1. ?Figure out why passwd, chsh, su, and sudo commands need to be Set-UIDprograms. What will happen if they are not? If you are not familiar with these programs, you should first learn what they can do by reading their manuals. Please copy these commands to your owndirectory; the copies will not be Set-UID programs. Run the copied programs, and observe whathappens. 实验截图如下: ??????????????????????????????????????????????? ?? 图 1 ?????????????????????????????????????????????????????? 图 2 ?? 由图1,图2所示:拷贝到/home/seed下的passwd程序,没有了root权限,这样就没有了修改密码的权限。同样chsh su等等同样的道理。 2. ?Run Set-UID shell programs in Linux, and describe and explain your observations. (a) Login as root, copy /bin/zsh to /tmp, and make it a set-root-uid program with permission4755. Then login as a normal user, and run /tmp/zsh. Will you get root privilege? Please describe your observation. If you cannot find /bin/zsh in your operating system, please use the following command to install it:_ Note: in our pre-built Ubuntu VM image, zsh is already installed. su Password: (enter root password) ?yum install zsh ?For Ubuntu $ su Password: (enter root password) apt-get install zsh ????????????????????????????????????????? 图 3 由图3示,可以获得root权限 (b) Instead of copying /bin/zsh, this time, copy /bin/bash to /tmp, make it a set-root-uidprogram. Run /tmp/bash as a normal user. will you get root privilege? Please describe andexplain your observation. ???????????????????????????????????????????? 图 4 由图4示获得不了root权限,,从实验中可以看出/bin/bash有某种内在的保护机制可以阻止Set-UID机制的滥用。 3. (Setup for the rest of the tasks) As you can find out from the previous task, /bin/bash

文档评论(0)

xinshengwencai + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:5311233133000002

1亿VIP精品文档

相关文档