Page 1 of 1

getting files list in a directory with index.html | php file

Posted: Sun Feb 19, 2006 10:49 am
by raghavan20
Normally in a site like
http://somehost.com/

there should be an index.html of index.php which actually shows up whenever we type in the website names and prevents us from knowing the other files in the same directory. I want to know whether there is a way to find all the files in a directory which has got either index.html or index.php file.

Posted: Sun Feb 19, 2006 11:44 am
by josh
By hacking in and using a serverside script to run a directory listing or modifying httpd.conf to remove index.html as an index page


What's the legit purpose for this, there might be a better solution...

Posted: Sun Feb 19, 2006 12:14 pm
by MinDFreeZ
haha, yea..... get the ftp username and password?

Posted: Sun Feb 19, 2006 12:53 pm
by timvw
There simply is no definitive answer for your question because there is no such functionality in http...
Sometimes requesting a robots.txt file does miracles.. Certainly if you use Google/2.X as useragent header..

Posted: Sun Feb 19, 2006 1:37 pm
by raghavan20
for the simplest and for the most legitimate purpose, I want to see all files in the directory to invoke them by listing not by using URL. can you now give me one method on how to do this?

Posted: Sun Feb 19, 2006 1:45 pm
by feyd
there is none on a site you do not own. On a site you own, you can either FTP in or if the script is local, list the files.

Posted: Sun Feb 19, 2006 1:48 pm
by josh
All you did just now was restate your question, I was asking because there is no legitimate reason to list files on a domain you do not own that are not public. There is also no way to do this over the http protocol as we already mentioned so no matter what your reason is we can not help you do this. I asked for a reason so that we could try to think of a better solution to your problem.