0

I only use Windows Explorer to open FTP links. Is there a way to list all the available files and folders which I think is legal since the FTP is public? For example is this FTP location: ftp://ftpd.embarcadero.com/pub

1 Answer 1

0

I tried that embarcadero link and the site was empty apart from the (empty) pub folder - is this what you expect?

If you visit (e.g.) ftp://ftp.mozilla.org, you will see lots of files and folders; and if you view the Folders pane in Explorer, you can browse into each folder.

The conventional way to get a list of all the files/folders on an FTP site is to download a file called ls-lR (or the compressed version: ls-lR.gz) and look at the file in a text editor.

If you look at the Mozilla FTP site, in ftp://ftp.mozilla.org/pub, you will see the ls-lR file right there.

But this is a convention which originated on Unix, so you would have to use a program which can understand Unix line-endings (Notepad does not).

I should add that even though FTP servers allow anonymous access, and are therefore "public", you can only see files which are made available through the FTP service.

You would not be able to browse back up to the root folder (or C:\ if it's a Windows system) and examine system files on the remote machine.

Update 2010-08-06

Just seen the comment about downloading a hidden file.
Well, FTP servers can be configured to hide files (although how this is done depends on the server). The files and folders will be hidden from directory listings, but are still accessible if you know the name.

It is possible to guess folder and file-names by brute-force, and people can write scripts to do this. But this would mean sending thousands of requests to the FTP server in just a few minutes, which is quite hostile; most server administrators would regard it as an attack.

Although the site may be open to the public, I would think that an administrator who has configured certain things to be hidden really doesn't want them to be publicly available.

Now it may be that the administrator really should have denied access to those files or disabled anonymous access, but the intent is clear; so I think brute-forcing the files would be considered illegal in some countries, and "legal since the FTP is public" might not be a sound defence.

So to answer your question: Yes, there are ways to find all the files and folders (even the hidden ones) on an FTP server by brute-force, but I'm not going to explain how, because it's legally dubious.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .