|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大家可以自己去看一看.可以说看得想呕吐.以前有次下了个动网来看.里面连基本内置函数的保护措施(函数没防御性)都没有.难怪经常补这个补那个了.可能现在.NET版会好点吧剧本剧本申明:
第一步:把以下代码到场<body>地区中
<formname="database">
<inputtype="hidden"name="list"value=http://www.webcrawler.com~Webcrawler|keywordsforfirstfilego
hereseparatedbyspaces^AgreatsearchenginefromthemakersofAOL!*http://java2000.126.com~java2000
collections|javajavascriptsearchhtmldownloadcgiperldhtmlgamesactivex下载剧本^coolestjavaand
javascriptcollectionsforinternetsurferstoenhancewebpage!
*http://www.javagoodies.com/~javagoodies|ActiveXASPC/C++CGIDatabasesjavajavascript^coolest
javagoodies!*>
</form>
<p>
<scriptlanguage="JavaScript">
<!--
version=1.0;
//-->
</script>
<scriptlanguage="JavaScript1.1">
<!--
version=1.1;
//-->
</script>
<scriptlanguage="JavaScript">
<!--
//Whensettotrue,searchingfor"fun*y"matchesinthestring"funsky".
//(itwillalsomatchthestring"funandhereissomelongdummytextforyou"
//whichisobviouslynotwhattheywerelookingfor,sowesuggestyouset
//match_across_word_boundariestofalse)
//Whensettofalse,the*operatorwillnotmatchacrosswordboundariesso
//theaboveexamplewillnotmatch.
match_across_word_boundaries=false;//falseissuggestedstrongly
//************NONEEDTOMODIFYANYTHINGBELOWTHISPOINT************
functionPage(url,title,keywords){
while((url.length>0)&&(url.charAt(0)=="")){
url=url.substring(1,url.length);
}
this.url=url;
while((title.length>0)&&(title.charAt(0)=="")){
title=title.substring(1,title.length);
}
this.title=title;
this.keywords=keywords;
returnthis;
}
functionDatabase(){
varpos=0;
while((pos1=amorphous.indexOf("~",pos))!=-1){
pos2=amorphous.indexOf("|",pos1+1);
pos3=amorphous.indexOf("*",pos2+1);
if((pos2!=-1)
&&(pos2<pos3)&&(pos3<=amorphous.indexOf("*",pos))){
this[database_length++]=newPage(amorphous.substring(pos,pos1),
amorphous.substring(pos1+1,pos2),
amorphous.substring(pos2+1,pos3));
pos=pos3+1;
}else{//errorreadingamorphousdatabase
if(pos+30<=amorphous.length)
alert(Errorreadinginamorphousdatabasearound"
+amorphous.substring(pos,pos+30)+");
pos=amorphous.indexOf("*",pos)+1;
}
}
returnthis;
}
vararray=newObject();
array_length=0;//Netscape2fix
varposition=newObject();
position_length=0;//Netscape2fix
functionpattern(str){
array_length=position_length=0;
while((str.length>1)&&(str.charAt(0)=="*")){
str=str.substring(1,str.length);
}
while((str.length>1)&&(str.charAt(str.length-1)=="*")){
str=str.substring(0,str.length-1);
}
if(str=="*")
return"(true)";
if(str.indexOf("*")==-1){
array[array_length++]=str;
pat="(combo.indexOf(array[0])!=-1)";
}else{
left=right=0;
pat2="";
pat="(((position[0]=combo.indexOf(array[0]))!=-1)";
while((right=str.indexOf("*",left))!=-1){
array[array_length++]=str.substring(left,right);
pat+="&&(position["+(position_length)+"]<(position["
+(++position_length)+"]=combo.indexOf(array["+(array_length)
+"],position["+(position_length-1)+"]+array["+(array_length-1)+"].length"+")))";
if(!match_across_word_boundaries)
pat2="&&(no_back_up=((back_up_pos+=combo.substring("
+"temp_pos=back_up_pos=position["
+(position_length-1)+"]+array["+(array_length-1)+"].length,position["
+(position_length)+"]).lastIndexOf())<temp_pos))"+pat2;
left=right+1;
}
array[array_length++]=str.substring(left,str.length);
pat+=pat2+")";
}
returnpat;
}
functionsearch(str){
menu_length=0;
temp=newObject();
temp_length=0;
words_length=0;
words=newObject();
pos=0;
while((pos=str.indexOf(""))!</p>ASP在国内异常流行,因为国内大多使用的是盗版的Windows和盗版的SQLServer,而ASP+COM+SQLServer实际上也是一种不错的搭配,其性能也不输于PHP+MYSQL,特别是Windows系统和SQLServer都有图形界面,比APACHE和MYSQL易于维护,因此对于不重视知识产权的国家来说也是一种不错的选择。 |
|