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也存在此漏洞。(前面和后面的代码呢?^.^)
发表评论