philzhou

导航

2011年1月13日 #

metasploit

摘要: 下面的关于计算机内存组织形式的解释,可以很好的解释exploit的原理。2.1 Memory organizationThe basic exploitation techniques can be methodically categorized, like any other technical issue. Before going further, however, the reader must be aware of the basic process of memory organization [ref 2]. A process running in memory has t 阅读全文

posted @ 2011-01-13 16:40 philzhou 阅读(349) 评论(0) 推荐(0) 编辑

C# 内存溢出示例

摘要: static unsafevoid Main(string[] args) { Console.WriteLine(Change_Result()); Console.ReadLine(); } staticunsafeint Change_Result() { int i =0; //变量result,默认的返回值 int result =123; //申请一段栈内存,大小可随意设置 int* p =stackallocint[1]; //从当前栈地址开始向下查找与函数返回值相匹配的地址,一旦匹配则修改为10000 while (true) { if (p[++i] ==123) { p 阅读全文

posted @ 2011-01-13 16:38 philzhou 阅读(2948) 评论(1) 推荐(0) 编辑