Home arrow static arrow Java Programming [Archive] - retrieving http directory tree
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - retrieving http directory tree
This topic has 5 replies on 1 page.

Posts:136
Registered: 8/29/02
retrieving http directory tree  
Jul 8, 2004 7:43 AM



 
Hi,

I want to implement a java program that gets a URL and retrieves all possible(readable) directories and files under this URL. How possible is this to implement in java? If this is possible, which classes and methods do I need to use?

Thnaks
 

Posts:3,534
Registered: 9/30/99
Re: retrieving http directory tree  
Jul 8, 2004 7:55 AM (reply 1 of 5)



 
No problem, you just need to have a servlet on the server to support that activity.
 

Posts:3,534
Registered: 9/30/99
Re: retrieving http directory tree  
Jul 8, 2004 7:56 AM (reply 2 of 5)



 
Java will not give you any access to a server with you do not have rights to and an interface for.
 

Posts:136
Registered: 8/29/02
Re: retrieving http directory tree  
Jul 8, 2004 7:58 AM (reply 3 of 5)



 

Thanks, but I want to provide this function for penetration security testing. So, I am not interested just my server, but all servers around. So, servlet does not help me, as you see.
 

Posts:31,095
Registered: 4/30/99
Re: retrieving http directory tree  
Jul 8, 2004 8:24 AM (reply 4 of 5)



 
HTTP doesn't even have the concept of directories and files under a URL. A URL is simply a resource, which need not be a file, and similarly-named resources don't imply that they come from similar places in a directory structure.
 

Posts:3,534
Registered: 9/30/99
Re: retrieving http directory tree  
Jul 8, 2004 10:53 AM (reply 5 of 5)



 
Then you want to get out of Java and into MS Products and find a new security Hole.
 
This topic has 5 replies on 1 page.