一个针对IE6的新漏洞

| |
[2008/07/30 16:57 | 分类: 杂七杂八 | by 管管 ]
本文由 蘰埗 投稿,欢迎大家也积极参与投稿,有好东西可以随时联系我哦!

JavaScript IE 6 漏洞

  其利用代码如下:


<script type="text/jscript">
function init() {
document.write("The time is: " + Date() );

}
window.onload = init;
</script>



  利用此代码可以隐藏网页前面的html代码,运行后就只能看见javascript语句里面执行的代 码。

  并且刷新后也不能再看见网站的源代码,并可利用javascript执行任意代码。

  测试方法:


<h1>ncph of something<i>before</i></h1>
<br> the <b>JavaScript</b>... ncphncph


<script type="text/jscript">
function init() {
document.write("The time is now: " + Date() );

}
window.onload = init;
</script>

And <u>ncph of something</u> after the <b>JavaScript</b>


  保存上面的代码为html页面看看。

  如果只看到上面的时间,就证明你的ie也存在此漏洞。(前面和后面的代码呢?^.^)

  在xp sp2 2000 sp4 2003sp1测试通过
评论(2) | 引用(0) | 阅读(3043)


easy Says:
2008/08/27 09:52
写的不明白啊.
hezhanpeng0408 Says:
2008/08/01 16:48
最快速度怎么弄的啊!
额。。。什么最快速度?
管管 回复于 2008/08/02 01:54
分页: 1/1 第一页 1 最后页
发表评论
昵称
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我