[jcifs] using jcifs for retrieving shares

Christopher R. Hertel crh at ubiqx.mn.org
Thu Nov 14 09:59:01 EST 2002


It has nothing to do with jCIFS.  It's about authentication and
authorization.  You can't see the folders on an SMB server if you don't
have access.

jCIFS is the right tool for accessing SMB shares using Java, but it's not 
a cracking tool.  It doesn't try to break into SMB shares to see what's 
inside.  You will need to enter a username and password if you want to 
list the files and subdirectories.

Some systems will allow you to view the list of shares using anonymous
login or the Guest account.  Likewise, some systems allow Guest login to
shares, so that you can see the files and such.  Those shares are poorly
protected and should be the exception, not the rule.

>From your description, you are looking for a grey-hat tool like Phynd.  
You could write such a tool using jCIFS, but you would need to understand
the workings of SMB and know what it is you are looking for.  Even then,
any system that is properly managed would deny you access.

Chris -)-----

On Thu, Nov 14, 2002 at 12:17:57AM +0200, Bogdan Cirstea wrote:
> what i really want is to find which are the shared folders and files on
> every computer intranet. 
> i want to do that in java and i thought that jcifs could help me. i would
> like not to deped on what operating system is on that computer and
> especially not using an username and password. it is that possible using
> jcifs? 
> if not, do you know another api in java which could help me ?
> tks a lot



-- 
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the jcifs mailing list