论坛: 编程破解 标题: 请老手帮我分析下。这段程序有什么作用感谢了 复制本贴地址    
作者: happylypj [happylypj]    论坛用户   登录

NS_ActualWrite=document.write;
// Script Error Blocker -->
function handleError() {return true;}
window.onerror = handleError;
document.ignore = new Object();
// WebBug Blocker -->
function NS_NewWrite(str){
 var wbre1 = new RegExp('<img[^<]*width *= *["\']?[1-5][^0-9][^<]*height *= *["\']?[1-5](>|[^0-9][^<]*>)','gi'); 
 var wbre2 = new RegExp('<img[^<]*height *= *["\']?[1-5][^0-9][^<]*width *= *["\']?[1-5](>|[^0-9][^<]*>)','gi');  
 str = str.replace(wbre1, '<img src="http://localhost:1026/bug.cgi">');
 str = str.replace(wbre2, '<img src="http://localhost:1026/bug.cgi">');
 NS_ActualWrite(str);
}
function NS_NewWriteLn(str){
 NS_NewWrite(str+'\n');
}
document.writeln=NS_NewWriteLn;
document.write=NS_NewWrite;


地主 发表时间: 12/16 10:49

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号