{"id":204,"date":"2008-12-04T08:56:22","date_gmt":"2008-12-04T00:56:22","guid":{"rendered":""},"modified":"2014-02-27T22:59:39","modified_gmt":"2014-02-27T14:59:39","slug":"%e7%94%a8asp%e5%ae%9e%e7%8e%b0asp%e6%96%87%e4%bb%b6%e7%9a%84%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/12\/04\/204.htm","title":{"rendered":"\u7528ASP\u5b9e\u73b0ASP\u6587\u4ef6\u7684\u8fd0\u884c"},"content":{"rendered":"<p>\u5199\u8fd9\u4e2a\u5c0f\u4e1c\u897f\u7684\u51fa\u53d1\u70b9,\u7531\u4e8e\u7ecf\u5e38\u7684\u9700\u8981\u5728\u7ebf\u5229\u7528asp\u811a\u672c\u7684ado\u5bf9\u6570\u636e\u5e93\u6267\u884c\u5efa\u8868,\u4fee\u6539\u5b57\u6bb5<br \/>\n\u6bcf\u6b21\u90fd\u8981ftp\u4fee\u6539\u5347\u7ea7\u6587\u4ef6\u4f20\u4e0a\u53bb\u6216\u5728\u7ebf\u4fee\u6539\u597d\u4e86\u8fd0\u884c!\u5f88\u662f\u9ebb\u70e6<br \/>\n\u4e8e\u662f\u5199\u4e86\u8fd9\u4e2a\u5c0f\u4e1c\u897f!\u5f88\u65b9\u4fbf~~<\/p>\n<p><b>\u811a\u672c\u7279\u70b9:<\/b><br \/>\n1.\u53ef\u4ee5\u8fd0\u884c\u9664\u4e86 ssi(\u5982#include file) \u548c \u9884\u5904\u7406\u6307\u4ee4(\u5982@ language=javascript)\u5916\u7684\u4efb\u4f55 asp vbscript \u811a\u672c<br \/>\n\u6bd4\u5982\u6570\u636e\u5e93\u8fde\u63a5,\u8bb0\u5f55\u96c6\u7684\u5efa\u7acb,\u751a\u81f3Fso\u7b49<br \/>\n2.\u5e76\u53ef\u8fd0\u884c&lt;%%&gt; &lt;%=%&gt; HTML\u6df7\u7f16\u7684 ASP\u811a\u672c <br \/>\n3.\u6709\u7b80\u5355\u7684\u5bb9\u9519\u5904\u7406\u673a\u5236,\u53ef\u4ee5\u7b80\u5355\u7684\u77e5\u9053\u662f\u811a\u672c\u90a3\u4e2a\u90e8\u5206\u9519\u8bef<br \/>\n4.\u5177\u6709\u9a8c\u8bc1\u7801\u767b\u9646,\u5bc6\u7801\u548c\u7528\u6237\u540d\u5728\u4ee3\u7801runasp.asp \u7684\u5934\u90e8\u4fee\u6539,\u7f3a\u7701\u63d0\u4f9b\u7684\u662f\u5e10\u53f7:admin \u5bc6\u7801:admin<\/p>\n<p>\u770b\u8d77\u6765\u8fd9\u4e2a\u811a\u672c\u5f88\u7b80\u964b,\u5176\u5b9e\u529f\u80fd\u6781\u5176\u5f3a\u5927\u7684\u53ef\u6015!<br \/>\n\u867d\u7136\u6709\u7b80\u5355\u7684\u767b\u9646\u9a8c\u8bc1,\u4f46\u8fd8\u662f\u4e0d\u5efa\u8bae\u4f60\u4f7f\u7528\u5728\u4f60\u7684\u7ad9\u70b9\u4e0a,\u505a\u4e3a\u4e00\u4e2a\u8f85\u52a9\u8c03\u8bd5asp\u4ee3\u7801\u7684\u5c0f\u5de5\u5177<br \/>\n\u4e2a\u4eba\u8ba4\u4e3a\u6bd4\u8f83\u5b9e\u7528\u7684!\u6240\u4ee5\u4f60\u53ef\u4ee5\u81ea\u5df1\u6d4b\u8bd5,\u73a9\u73a9,\u6216\u4f5c\u4e3a\u4e34\u65f6\u7684\u8bba\u575b\u4ee3\u7801\u89e3\u51b3\u95ee\u9898\u7684\u6d4b\u8bd5\u5de5\u5177!<br \/>\n\u56e0\u4e3a\u6bcf\u6b21\u90fd\u8981\u8fdb\u5165\u8c03\u8bd5\u73af\u5883\u6765\u8fd0\u884casp\u7684\u786e\u9ebb\u70e6!<br \/>\n\u8fd8\u9700\u8981\u6ce8\u610f\u4e00\u70b9\u7684\u662f\u8c61 &lt;td width=50%&gt; \u768450%\u4e00\u5b9a\u8981\u5199\u52a0\u5f15\u53f7<\/p>\n<p>\u6f14\u793a(admin \u5bc6\u7801admin):<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/www.paintblue.net\/myasp\/runasp.asp\" target=\"_blank\"><u><font color=\"#0000ff\">www.paintblue.net\/myasp\/runasp.asp<\/font><\/u><\/a><br \/>\n(\u5b9e\u9645\u6267\u884c\u529f\u80fd\u5df2\u7ecf\u5c4f\u853d,\u8bf7\u4e0b\u8f7d\u6216\u7c98\u8d34\u4e0b\u9762\u4ee3\u7801\u6d4b\u8bd5\u4f7f\u7528):<\/p>\n<p>\u4e0b\u8f7d:&nbsp;<a rel=\"nofollow\" href=\"http:\/\/www.blueidea.com\/articleimg\/2003\/12\/1429\/runasp.rar\" target=\"_blank\"><u><font color=\"#800080\">runasp.rar<\/font><\/u><\/a><\/p>\n<p><img decoding=\"async\" onclick=\"javascript:window.open(this.src);\" src=\"http:\/\/ajax.cnrui.cn\/article\/UploadPic\/2006-11\/200611161587892.gif\" width=\"444\" onload=\"return imgzoom(this,550)\" style=\"cursor: pointer\" alt=\"\" \/><\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#f3f3f3\" style=\"word-wrap: break-word\"><font style=\"font-weight: bold; color: #990000\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/font><\/p>\n<p><font face=\"Verdana\">&lt;% @ LANGUAGE=&quot;VBSCRIPT&quot; %&gt;<br \/>\n            &lt;%Option Explicit<br \/>\n            response.buffer=true<br \/>\n            dim Spassword,SUserName<br \/>\n            &nbsp;SUserName=&quot;admin&quot;<br \/>\n            &nbsp;Spassword=&quot;admin&quot;<br \/>\n            dim SQLMutiStr<br \/>\n            dim i<br \/>\n            dim action<br \/>\n            &nbsp;action=request.querystring(&quot;action&quot;)<\/font><\/p>\n<p><font face=\"Verdana\">IF action=&quot;GetCode&quot; then &#8216;&#8212;&#8212;&#8212;TOT<br \/>\n            &nbsp;NumCodeJS<br \/>\n            ELSE &#8216;&#8212;&#8212;&#8211;TOT<br \/>\n            &nbsp;Response.Write(&quot;&lt;!DOCTYPE HTML PUBLIC &quot;&quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&quot;&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;HTML&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;HEAD&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;TITLE&gt;ASP RunCode SCR V1.0 \/ Create By PaintBlue.Net V37&lt;\/TITLE&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;META NAME=&quot;&quot;Generator&quot;&quot; CONTENT=&quot;&quot;EditPlus,V37,PaintBlue.Net&quot;&quot;&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;META NAME=&quot;&quot;Author&quot;&quot; CONTENT=&quot;&quot;V37,PaintBlue.Net&quot;&quot;&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;META NAME=&quot;&quot;Keywords&quot;&quot; CONTENT=&quot;&quot;PaintBlue.Net,,V37,RunCode,ASP,Script,BlueIdea.COM,Lfgbox.com&quot;&quot;&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;META NAME=&quot;&quot;Description&quot;&quot; CONTENT=&quot;&quot;\u8fd0\u884cASP\u4ee3\u7801\u7684ASP\u811a\u672c!&quot;&quot;&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;\/HEAD&gt;&quot;)<br \/>\n            &nbsp;Response.Write(&quot;&lt;BODY bgcolor=#D4D0C8&gt;&quot;)<\/font><\/p>\n<p><font face=\"Verdana\">&nbsp;SQLMutiStr=trim(Request.Form(&quot;SQLMutiStr&quot;))<br \/>\n            &nbsp;if session(&quot;login&quot;)=&quot;&quot; and action=&quot;chkpass&quot; then<br \/>\n            &nbsp; session(&quot;login&quot;)=checkPass()<br \/>\n            &nbsp;end if<br \/>\n            &nbsp;if action=&quot;exit&quot; then session(&quot;login&quot;)=&quot;&quot;<br \/>\n            &nbsp;if session(&quot;login&quot;)=&quot;1&quot; then<br \/>\n            &nbsp;&nbsp; if action=&quot;RunCode&quot; then&nbsp; <br \/>\n            &nbsp;&nbsp;&nbsp; if SQLMutiStr=&quot;&quot; then<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; Response.write &quot;\u6ca1\u6709\u8f93\u5165\u8981\u8fd0\u884c\u7684\u4ee3\u7801!&quot;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; Response.write &quot;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;&quot;<i>javascript<\/i>:window.history.back();&quot;&quot;&gt;\u8fd4\u56de\u8fd0\u884c\u9875\u9762&lt;\/a&gt;&lt;br&gt;&lt;br&gt;&quot;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; Response.write &quot;&lt;a href=&quot;&quot;?action=exit&quot;&quot;&gt;\u9000\u51fa\u767b\u9646&lt;\/a&gt;&quot;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; response.end<br \/>\n            &nbsp;&nbsp;&nbsp; else<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; dim ExeStrArr<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; dim re<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; dim tempSQL,tempSQL2<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dim ScriptArr,ScriptSubArr<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=&quot;&quot;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; tempSQL=split(SQLMutiStr,vbcrlf)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; if inStr(lcase(tempSQL(0)),&quot;language&quot;)&gt;0 then<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=tempSQL(1)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ubound(tempSQL)&gt;1 then<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i=1 to ubound(tempSQL)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=tempSQL2&amp;tempSQL(i)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=trim(tempSQL2)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; else<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=SQLMutiStr<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; end if<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=replace(tempSQL2,&quot;&lt;%&quot;&amp;&quot;=&quot;,&quot;&lt;&quot;&amp;&quot;%response.write &quot;)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do <br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=replace(tempSQL2,vbcrlf&amp;vbcrlf,vbcrlf)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loop while instr(tempSQL2,vbcrlf&amp;vbcrlf)&gt;0<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=trim(tempSQL2)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempSQL2=&quot;&lt;&quot;&amp;&quot;%%&quot;&amp;&quot;&gt;&quot;&amp;tempSQL2&amp;&quot;&lt;&quot;&amp;&quot;%%&quot;&amp;&quot;&gt;&quot;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ScriptArr=split(tempSQL2,&quot;%&quot;&amp;&quot;&gt;&quot;)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dim ub,kub<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ub=ubound(ScriptArr)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i=0 to ub-1<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ScriptSubArr=split(ScriptArr(i),&quot;&lt;&quot;&amp;&quot;%&quot;)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if i&gt;0 then response.write (ScriptSubArr(0))<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ExeCuteIt(ScriptSubArr(1))<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp; call EndProc(&quot;&lt;font color=#009900&gt;\u4ee3\u7801\u8fd0\u884c\u5b8c\u6bd5!&lt;\/font&gt;&quot;)<br \/>\n            &nbsp;&nbsp;&nbsp; end if<br \/>\n            &nbsp;&nbsp; else<br \/>\n            &nbsp;&nbsp;&nbsp; %&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; \u8f93\u5165\u8981\u8fd0\u884c\u7684ASP\u4ee3\u7801:<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;FORM METHOD=POST ACTION=&quot;?action=RunCode&quot; style=&quot;margin:0px;&quot;&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;TEXTAREA NAME=&quot;SQLMutiStr&quot; wrap=&#8217;OFF&#8217; ROWS=&quot;20&quot; style=&quot;width:100%;height:100%;table-layout:fixed;word-break:break-all;&quot;&gt;&lt;%=Server.Htmlencode(SQLMutiStr)%&gt;&lt;\/TEXTAREA&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;br&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;INPUT TYPE=&quot;button&quot; onclick=&quot;window.location.href=&#8217;?action=exit&#8217;;&quot; Value=&quot;LouOut&quot;&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;INPUT TYPE=&quot;reset&quot; Value=&quot;Clear&quot;&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;INPUT TYPE=&quot;submit&quot; value=&quot;Run AspCode&quot;&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;\/FORM&gt;<br \/>\n            &nbsp; &lt;% end if<br \/>\n            &nbsp;else<br \/>\n            &nbsp; call loginmain()<br \/>\n            &nbsp;end if<br \/>\n            &nbsp; Response.write (&quot;&lt;\/BODY&gt;&lt;\/HTML&gt;&quot;)<br \/>\n            END IF &#8216;&#8212;&#8212;-TOT<\/font><\/p>\n<p><font face=\"Verdana\">SUB loginMain()<br \/>\n            &nbsp;%&gt;<\/font><\/p>\n<p><font face=\"Verdana\">&nbsp; &lt;FORM METHOD=POST ACTION=&quot;?action=chkpass&quot;&gt;&amp;nbsp;UserName:&lt;INPUT TYPE=&quot;text&quot; NAME=&quot;UserName&quot;&gt;&lt;br&gt;<br \/>\n            &nbsp; &amp;nbsp;PassWord:&lt;INPUT TYPE=&quot;password&quot; NAME=&quot;Runpassword&quot;&gt;&lt;br&gt;<br \/>\n            &nbsp; CheckCode:&lt;INPUT TYPE=&quot;GetCode&quot; NAME=&quot;GetCode&quot;&gt;&lt;img src=&quot;runasp.asp?action=GetCode&amp;Time=&lt;%=timer()%&gt;&quot;&gt;&lt;br&gt;<br \/>\n            &nbsp; &lt;br&gt;&lt;img width=125 height=0&gt;&lt;INPUT TYPE=&quot;submit&quot; value=&quot; Login &quot;&gt;&lt;\/FORM&gt;<br \/>\n            &nbsp;&lt;% <br \/>\n            End SUB<\/font><\/p>\n<p><font face=\"Verdana\">function checkPass()<br \/>\n            &nbsp;dim UserName,Runpassword,GetCode<br \/>\n            &nbsp;dim errinfo<br \/>\n            &nbsp;checkPass=&quot;&quot;<br \/>\n            &nbsp;UserName=trim(request.form(&quot;UserName&quot;))<br \/>\n            &nbsp;Runpassword=trim(request.form(&quot;Runpassword&quot;))<br \/>\n            &nbsp;GetCode=request.form(&quot;GetCode&quot;)<br \/>\n            &nbsp;if UserName=&quot;&quot; or Runpassword=&quot;&quot; then<br \/>\n            &nbsp; errinfo=errinfo&amp;&quot;&lt;li&gt;\u7528\u6237\u540d\u548c\u5bc6\u7801\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a&quot;<br \/>\n            &nbsp;end if<br \/>\n            &nbsp;if Not isnumeric(GetCode) then<br \/>\n            &nbsp; errinfo=errinfo&amp;&quot;&lt;li&gt;\u8bf7\u8f93\u5165\u6570\u5b57\u6821\u9a8c\u7801&quot;<br \/>\n            &nbsp;end if<br \/>\n            &nbsp;if errinfo&lt;&gt;&quot;&quot; then <br \/>\n            &nbsp; call loginmain()&nbsp; <br \/>\n            &nbsp; EndProc errinfo<br \/>\n            &nbsp;end if<br \/>\n            &nbsp;if action=&quot;chkpass&quot; and Session(&quot;GetCode&quot;)=int(GetCode) and UserName=SUserName and Runpassword=Spassword then<br \/>\n            &nbsp; Session(&quot;GetCode&quot;)=0<br \/>\n            &nbsp; checkPass=&quot;1&quot;<br \/>\n            &nbsp;else<br \/>\n            &nbsp; call loginmain()<br \/>\n            &nbsp; EndProc &quot;\u767b\u9646\u5931\u8d25!\u8bf7\u91cd\u65b0\u786e\u8ba4\u6b63\u786e\u8f93\u5165&quot;<br \/>\n            &nbsp;end if<br \/>\n            End function<\/font><\/p>\n<p><font face=\"Verdana\">SUB ExeCuteIt(ExString)<br \/>\n            &nbsp;on error resume next<br \/>\n            &nbsp;Execute(ExString)<br \/>\n            &nbsp;if err.number&lt;&gt;0 then<br \/>\n            &nbsp; Response.write &quot;&lt;div style=&quot;&quot;background-color: #ffeedd;padding: 6px;&quot;&quot;&gt;&quot;<br \/>\n            &nbsp; Response.write &quot;&lt;hr size=1&gt;&quot;<br \/>\n            &nbsp; Response.write &quot;\u51fa\u9519\u4fe1\u606f:&lt;li&gt;&lt;font color=#ff0000&gt;&quot;&amp;err.description&amp;&quot;&lt;\/font&gt;&quot;<br \/>\n            &nbsp; Response.write &quot;&lt;hr size=1&gt;&quot;<br \/>\n            &nbsp; Response.write &quot;\u51fa\u9519\u4ee3\u7801:&lt;li&gt;&lt;font color=#0000ff&gt;&quot;&amp;Htmlencode(ExString)&amp;&quot;&lt;\/font&gt;&quot;<br \/>\n            &nbsp; Response.write &quot;&lt;hr size=1&gt;&lt;\/div&gt;&quot;<br \/>\n            &nbsp;end if<br \/>\n            &nbsp;on error goto 0<br \/>\n            end SUB<\/font><\/p>\n<p><font face=\"Verdana\">function HTMLEncode(reString)<br \/>\n            &nbsp;dim Str:Str=reString<br \/>\n            &nbsp;if not isnull(Str) then<br \/>\n            &nbsp; Str = replace(Str, &quot;&gt;&quot;, &quot;&amp;gt;&quot;)<br \/>\n            &nbsp; Str = replace(Str, &quot;&lt;&quot;, &quot;&amp;lt;&quot;)<br \/>\n            &nbsp; Str = Replace(Str, CHR(32), &quot;&amp;nbsp;&quot;)<br \/>\n            &nbsp; Str = Replace(Str, CHR(9), &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;)<br \/>\n            &nbsp; Str = Replace(Str, CHR(34), &quot;&amp;quot;&quot;) &#8216; &quot;<br \/>\n            &nbsp; Str = Replace(Str, CHR(39), &quot;&amp;#39;&quot;) &#8216; &#8216;<br \/>\n            &nbsp; Str = Replace(Str, CHR(13), &quot;&quot;)<br \/>\n            &nbsp; Str = Replace(Str, CHR(10) &amp; CHR(10), &quot;&lt;\/P&gt;&lt;P&gt; &quot;)<br \/>\n            &nbsp; Str = Replace(Str, CHR(10), &quot;&lt;BR&gt; &quot;)<br \/>\n            &nbsp; HTMLEncode = Str<br \/>\n            &nbsp;else<br \/>\n            &nbsp; HTMLEncode=&quot;&quot;<br \/>\n            &nbsp;end if<br \/>\n            end function<\/font><\/p>\n<p><font face=\"Verdana\">&#8216;\u65ad\u70b9\u8c03\u8bd5 num=0 \u4e2d\u65ad<br \/>\n            Sub Response_write(str,num)<br \/>\n            &nbsp;dim istr:istr=str<br \/>\n            &nbsp;dim inum:inum=num<br \/>\n            &nbsp;response.write str&amp;&quot;&lt;br&gt;&quot;<br \/>\n            &nbsp;if inum=0 then response.end<br \/>\n            end sub<\/font><\/p>\n<p><font face=\"Verdana\">SUB EndProc(info)<br \/>\n            &nbsp;Response.write &quot;&lt;hr size=1 color=#00aa00&gt;&quot;<br \/>\n            &nbsp;Response.write info<br \/>\n            &nbsp;Response.write &quot;&lt;hr size=1 color=#00aa00&gt;&lt;a href=&quot;&quot;<i>javascript<\/i>:window.history.back();&quot;&quot;&gt;\u8fd4\u56de\u8fd0\u884c\u9875\u9762&lt;\/a&gt;&lt;br&gt;&lt;br&gt;&quot;<br \/>\n            &nbsp;Response.write &quot;&lt;a href=&quot;&quot;?action=exit&quot;&quot;&gt;\u9000\u51fa\u767b\u9646&lt;\/a&gt;&quot;<br \/>\n            &nbsp;response.end<br \/>\n            End SUB <br \/>\n            %&gt;<br \/>\n            &lt;script language=&quot;JScript&quot; runat=&quot;Server&quot;&gt;<br \/>\n            function GetNO(num){<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var NumArray=[<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;3c&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;3c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;30&quot;,&quot;38&quot;,&quot;30&quot;,&quot;30&quot;,&quot;30&quot;,&quot;30&quot;,&quot;30&quot;,&quot;30&quot;,&quot;30&quot;,&quot;30&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;3c&quot;,&quot;66&quot;,&quot;60&quot;,&quot;60&quot;,&quot;30&quot;,&quot;18&quot;,&quot;c&quot;,&quot;6&quot;,&quot;6&quot;,&quot;7e&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;3c&quot;,&quot;66&quot;,&quot;60&quot;,&quot;60&quot;,&quot;38&quot;,&quot;60&quot;,&quot;60&quot;,&quot;60&quot;,&quot;66&quot;,&quot;3c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;30&quot;,&quot;30&quot;,&quot;38&quot;,&quot;38&quot;,&quot;34&quot;,&quot;34&quot;,&quot;32&quot;,&quot;7e&quot;,&quot;30&quot;,&quot;78&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;7e&quot;,&quot;6&quot;,&quot;6&quot;,&quot;6&quot;,&quot;3e&quot;,&quot;60&quot;,&quot;60&quot;,&quot;60&quot;,&quot;66&quot;,&quot;3c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;38&quot;,&quot;c&quot;,&quot;6&quot;,&quot;6&quot;,&quot;3e&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;3c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;7e&quot;,&quot;66&quot;,&quot;60&quot;,&quot;60&quot;,&quot;30&quot;,&quot;30&quot;,&quot;18&quot;,&quot;18&quot;,&quot;c&quot;,&quot;c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;3c&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;3c&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;3c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;],<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;3c&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;66&quot;,&quot;7c&quot;,&quot;60&quot;,&quot;60&quot;,&quot;30&quot;,&quot;1c&quot;,&quot;0&quot;,&quot;0&quot;,&quot;0&quot;]<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ];<br \/>\n            &nbsp; var str=[];<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; num=String(num).split(&quot;&quot;);<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(var i=0;i&lt;NumArray[0].length;i++)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(var j=0;j&lt;num.length;j++)<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; str[str.length]=(&quot;0x&quot;+NumArray[num[j]][i]);<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var str1=&quot;#define counter_width &quot;+j*8;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var str2=&quot;#define counter_height 16&quot;;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return str1+String.fromCharCode(13,10)+str2+String.fromCharCode(13,10)+&quot;static unsigned char counter_bits[]={&quot;+str+&quot;}&quot;;<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/>\n            function GetRnd(Num){<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return Math.floor(Math.random()*Math.pow(10,Num));<br \/>\n            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/>\n            function NumCodeJS()<br \/>\n            &nbsp;{<br \/>\n            &nbsp;Response.buffer=true<br \/>\n            &nbsp;var zNum;<br \/>\n            &nbsp;var zNum=GetRnd(4);<br \/>\n            &nbsp;if (zNum&lt;1000) zNum+=999;<br \/>\n            &nbsp;Session(&quot;GetCode&quot;) = zNum;<br \/>\n            &nbsp;Response.ContentType=&quot;image\/x-xbitmap&quot;;<br \/>\n            &nbsp;Session(&quot;GetCode&quot;) = zNum;<br \/>\n            &nbsp;Response.Write(GetNO(zNum));<br \/>\n            &nbsp;}<br \/>\n            &lt;\/script&gt;<\/font><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>\u4ee3\u7801\u601d\u8def:<\/b><br \/>\n1.\u4f7f\u7528 vbs\u7684 execute() \u547d\u4ee4\u6267\u884c \u5b57\u4e32\u7684\u5f3a\u5927\u529f\u80fd!<br \/>\n\u8fd9\u4e2a\u547d\u4ee4\u6709\u65f6\u5019\u5f88\u6709\u7528,\u7279\u522b\u662f\u53ef\u4ee5\u628a\u4f60\u7684\u811a\u672c\u5f53\u4e00\u4e2a\u65b9\u4fbf\u7684\u5b57\u4e32\u5904\u7406,\u5b8c\u6210\u540e\u518d\u8c03\u7528<br \/>\nexecute \u6267\u884c\u8fd0\u884c!<br \/>\n\u7531\u4e8eexecute\u7684\u6267\u884c\u4ee3\u7801\u6548\u7387\u6bd4\u8f83\u4f4e,\u6240\u4ee5\u5b9e\u9645\u4f7f\u7528\u4e2d\u7528\u7684\u975e\u5e38\u5c11! <br \/>\n\u6211\u6bd4\u8f83\u8fc7\u6267\u884c\u53ea\u8981 50ms\u7684\u4ee3\u7801,\u6539\u7528execute \u6765\u6267\u884c\u540e\u4e32\u5347\u5230 200ms<br \/>\n2.\u5bf9 \u63d0\u4ea4\u7684 asp\u811a\u672c\u8868\u5355\u7684\u5904\u7406! <br \/>\n\u5148\u5bf9 &lt;%=aaaa%&gt;\u505a\u66ff\u6362\u6210 &lt;%response.write aaaa%&gt;<br \/>\n\u7136\u540e,\u7a0b\u5e8f\u5bf9\u5176\u5728\u5934\u548c\u5c3e\u5206\u522b\u52a0\u4e0a\u4e00\u5bf9&lt;%%&gt; form \u4ee3\u7801 &lt;%%&gt;<br \/>\n\u7136\u540e\u5bf9&lt;% \u548c%&gt;\u5206\u522b\u6267\u884csplit\u4e8c\u6b21\u5206\u5272!\u5c31\u80fd\u6709\u89c4\u5f8b\u7684\u53d6\u5f97 Html\u4ee3\u7801\u548c \u7eafasp \u4ee3\u7801\u4e24\u90e8\u5206!<br \/>\n\u7136\u540e\u5bf9 html\u6bb5\u7684\u6570\u7ec4\u6210\u5458\u76f4\u63a5 response.write<br \/>\n\u5bf9 \u7eafasp\u4ee3\u7801\u7684\u6570\u7ec4\u6210\u5458\u6267\u884c execute<br \/>\n\u8fd9\u6837\u5bf9\u6bcf\u6bb5 asp code\u6267\u884c on error resume next \u53d6 err.description<br \/>\n\u5c31\u5927\u81f4\u4e86\u89e3asp\u51fa\u9519\u4fe1\u606f\u4e86<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5199\u8fd9\u4e2a\u5c0f\u4e1c\u897f\u7684\u51fa\u53d1\u70b9,\u7531\u4e8e\u7ecf\u5e38\u7684\u9700\u8981\u5728\u7ebf\u5229\u7528asp\u811a\u672c\u7684ado\u5bf9\u6570\u636e\u5e93\u6267\u884c\u5efa\u8868,\u4fee\u6539\u5b57\u6bb5 \u6bcf\u6b21\u90fd\u8981ftp\u4fee\u6539\u5347\u7ea7\u6587\u4ef6\u4f20\u4e0a\u53bb\u6216\u5728\u7ebf\u4fee\u6539\u597d\u4e86\u8fd0\u884c!\u5f88\u662f\u9ebb\u70e6 \u4e8e\u662f\u5199\u4e86\u8fd9\u4e2a\u5c0f\u4e1c\u897f!\u5f88\u65b9\u4fbf~~ \u811a\u672c\u7279\u70b9: 1.\u53ef\u4ee5\u8fd0\u884c\u9664\u4e86 ssi(\u5982#include&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":66059,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/204\/revisions\/66059"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=204"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}