保存为https://images.downcodes.comrunasp.asp运行。账号密码admin,登陆后输入代码就可执行了!!
<% @ LANGUAGE="VBSCRIPT" %>
<%Option Explicit
re***nse.buffer=true
dim Spassword,SUserName
SUserName="admin"
Spassword="admin"
dim SQLMutiStr
dim i
dim action
ac***n=request.querystring("action")
IF action="GetCode" then '---------TOT
NumCodeJS
ELSE '--------TOT
Re***nse.Write("")
Re***nse.Write("")
Re***nse.Write("
SQLMutiStr=trim(Re***st.Form("SQLMutiStr"))
if session("login")="" and action="chkpass" then
session("login")=checkPass()
end if
if action="exit" then session("login")=""
if session("login")="1" then
if action="RunCode" then
if SQLMutiStr="" then
Re***nse.write "没有输入要运行的代码!"
Re***nse.write "
ja***cript:window.history.back();"">返回运行页面
"
Re***nse.write "退出登陆"
re***nse.end
else
dim ExeStrArr
dim re
dim tempSQL,tempSQL2
dim ScriptArr,ScriptSubArr
tempSQL2=""
tempSQL=split(SQLMutiStr,vbcrlf)
if inStr(lcase(tempSQL(0)),"language")>0 then
tempSQL2=tempSQL(1)
if ubound(tempSQL)>1 then
for i=1 to ubound(tempSQL)
tempSQL2=tempSQL2&tempSQL(i)
next
end if
tempSQL2=trim(tempSQL2)
else
tempSQL2=SQLMutiStr
end if
tempSQL2=replace(tempSQL2,"<%"&"=","<"&"%r***onse.write ")
do
tempSQL2=replace(tempSQL2,vbcrlf&vbcrlf,vbcrlf)
loop while instr(tempSQL2,vbcrlf&vbcrlf)>0
tempSQL2=trim(tempSQL2)
tempSQL2="<"&"%%"&">"&tempSQL2&"<"&"%%"&">"
ScriptArr=split(tempSQL2,"%"&">")
dim ub,kub
ub=ubound(ScriptArr)
for i=0 to ub-1
ScriptSubArr=split(ScriptArr(i),"<"&"%")
if i>0 then re***nse.write (ScriptSubArr(0))
ExeCuteIt(ScriptSubArr(1))
next
call EndProc("代码运行完毕!")
end if
else
%>
输入要运行的ASP代码:
SUB loginMain()
%>
function checkPass()
dim UserName,Runpassword,GetCode
dim errinfo
checkPass=""
UserName=trim(re***st.form("UserName"))
Runpassword=trim(re***st.form("Runpassword"))
GetCode=re***st.form("GetCode")
if UserName="" or Runpassword="" then
errinfo=errinfo&"
SUB ExeCuteIt(ExString)
on error resume next
Execute(ExString)
if er***umber<>0 then
Re***nse.write "
function HTMLEncode(reString)
dim Str:Str=reString
if not isnull(Str) then
Str = replace(Str, ">", ">")
Str = replace(Str, "<", "<")
Str = Replace(Str, CHR(32), " ")
Str = Replace(Str, CHR(9), " ")
Str = Replace(Str, CHR(34), """) ' "
Str = Replace(Str, CHR(39), "'") ' '
Str = Replace(Str, CHR(13), "")
Str = Replace(Str, CHR(10) & CHR(10), "
")
Str = Replace(Str, CHR(10), "
")
HTMLEncode = Str
else
HTMLEncode=""
end if
end function
'断点调试 num=0 中断
Sub Response_write(str,num)
dim istr:istr=str
dim inum:inum=num
re***nse.write str&"
"
if inum=0 then re***nse.end
end sub
SUB EndProc(info)
Re***nse.write "
上一篇: DW+ASP 玩转动态二级菜单
下一篇: 无刷新随时取得用户当前活动信息