Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - file object
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

file object

 Post Reply Post Reply Page  <123>
Author
kobubu View Drop Down
Newbie
Newbie


Joined: 02 February 2003
Location: Spain
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote kobubu Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2004 at 2:28pm

hello

yes im new

how do i use fso ,to be quite hunest i dont know a lot about this subject.

thanks

Back to Top
kobubu View Drop Down
Newbie
Newbie


Joined: 02 February 2003
Location: Spain
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote kobubu Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2004 at 3:53pm

hello again

here is the full source code, i dont use ADO only FileSystemObject

hope that it will help t find the problem

thanks

 

<%
if isAdmin then

    set fsObject = Server.CreateObject("Scripting.FileSystemObject")
   
     p_drive = Request.querystring("p_drive")

     if p_drive = "" then
%>
          <H1>Choose a Drive</H1>

<%          for each driveObj in fsObject.Drives
%>              
<A HREF="importstart.asp?p_drive=<%Response.Write driveObj.DriveLetter%>">

              <%=driveObj.driveLetter%>
               </A><BR>
<%          next
     else
%>
         <h1H1>Choose a Directory</h1H1>
          <a href<A HREF="importstart.asp">Top Level</a></A><P>
    
<%          set driveObj = fsObject.getDrive(p_drive)

             p_folder = Request.querystring("p_folder")
          if p_folder = "" then
               set FolderObj = driveObj.RootFolder
          else
               set FolderObj = fsObject.getFolder(p_folder)
          end if

%>          <h3>Folders</h3>

<%          for each subFolderObj in FolderObj.subFolders
               p_subFolder = Server.URLEncode(subFolderObj.Path)
%>         
<A HREF="importstart.asp?p_drive=<%    & nbsp;         & nbsp; Response.Write p_drive%>&p_folder=<%      ;           ; Response.Write p_subFolder%>">
                 <%=subFolderObj.path%>
           </A><BR>
<%          next

%>          <h3>Files</h3>

<%          for each fileObj in FolderObj.Files
               p_file = fileObj.Name
               p_full_path = Server.URLEncode(p_folder & "\" & p_file)
%>               <A HREF="importfile.asp?p_full_path=<%=p_full_path%>">
                   <%=FileObj.Name%>
               </A><BR>
<%          next
                
          set FolderObj = Nothing
          set driveObj = Nothing

     end if
       
     set fsObject = Nothing
else

    response.wResponse.Write "You do not have access to this page."

end if
%>

 

thanks

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2004 at 5:13pm
what OS/version of IIS are you using?
do you have any antivirus software installed?
are your server available to the public?
Back to Top
kobubu View Drop Down
Newbie
Newbie


Joined: 02 February 2003
Location: Spain
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote kobubu Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2004 at 4:21am

 

 

I use xp pro

i do have norton anti virus

how do i know if my server is open to the public?

thanks

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2004 at 10:14am
try disabling norton.. Norton always f**ks up everything..

I don't think your server is open for the public as you have no idea about it.. but when you are connected to the internet it may be and some punks may find their way into it, but that is probably not the problem here now..
Back to Top
kobubu View Drop Down
Newbie
Newbie


Joined: 02 February 2003
Location: Spain
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote kobubu Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 4:53am

hello again

just want to say tahanks the anti virus was making the trouble

thanks alot

 

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 5:19am

can Norton make such a trouble? or this is a benifit for security reasons?, cuz by this way any user upload this file to a server he can see all the files on the drive.

Yes

I uploaded a file like this and i was able to see all the files and folders on the hard disk drive, like the root and program files, although some other users' folders I wasn't able to browse for secutiry permission, but i was allowed to navigate through all the other files on the drive, opening even .asp files and viewing its code.

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 9:31am
Originally posted by zMaestro zMaestro wrote:

can Norton make such a trouble? or this is a benifit for security reasons?, cuz by this way any user upload this file to a server he can see all the files on the drive.


I'm not sure if Symantec has done this on purpose or not, but it is absolutely unnecessary..

Originally posted by zMaestro zMaestro wrote:


Yes

I uploaded a file like this and i was able to see all the files and folders on the hard disk drive, like the root and program files, although some other users' folders I wasn't able to browse for secutiry permission, but i was allowed to navigate through all the other files on the drive, opening even .asp files and viewing its code.



FSO is a security threat if permissions is incorrectly set up on the server.. but with most hosts this is not a problem..
It is possible to VIEW files in the Program files, windows etc folders, but not upload/delete (write) and it's not possible to do anything with folders with explicit permissions for selected users, like folders in the documents and settings folder and users' www/ftp folders
Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.