※ 引述《wulawu ( )》之銘言: : ※ 引述《prokofieff (普羅高菲夫)》之銘言: : : 最近因為論文需求,需要幾個buffer overflow的攻擊cases, : : 但是好像Linux本身已經有很多防止overflow的功能, : : 像是non-executable stack、 : : ASLR(address space layout randomization) : : 請問一下這些防護要怎麼關掉呢? 謝謝 : I'm not sure whether my ubuntu(7.10) supports non-executable stack and : ASLR directly or not. Even if it supports, it is inconsequential for : you to attack successfully by buffer overflow. : Perhaps you should tell us what forms of buffer overflow attack you'll : use first, and then I can tell you how to exploit successfully in my : environment. : In general, disabled stack-smashing protection could solve most parts of : problems. 我的攻擊case大部分都是這邊找的 http://www.milw0rm.org/platforms/linux 蠻多的buffer overflow attack攻擊結果都是出現segmentation fault之後終止, 所以我在想是不是把protection關掉就可以比較容易成功, 其實我只要任何一種BOA能夠攻擊成功就好, 你可以告訴我你的kernel版本嗎? 因為攻擊成功與否似乎比較跟kernel版本還有所攻擊的software版本有關, 也許我可以提供比較容易成功的攻擊case, 請問你所說的stack-smashing protection跟non-executable stack是一樣的嗎? 怎麼disable這個功能可以教我嗎? 謝謝 我的實驗環境為gentoo linux 2.6.18 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.52.31