Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Smb Shares

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
I am running a network of 50 or so NT workstations. I have been told to monitor the activities of the users. Unfortunately they won't provide me with a computer to setup a program like surf watch near the router. So I was doing some reading last night and I came up with the idea of using java and having a connection made to their shares (I would create an administrative share of the entire hard disk). and scanning the disks for questionable material. Would this be possible in java? All I need to know is what resources are required to connect to shares, because the rest of the program is going to be adapted from my other projects. Any insight would be appreciated. BTW, I know there are probably better survailence programs on the market. I would prefer to write it in java as this would take some time and I would rather not know what all my coworkers are doing with their time.

What are the legal consequences of doing this, or using spyware (I live and work in Canada)? I have heard different things, that it was and wasn't legal to do such things. Personally I don't feel comfortable, but my bosses would not approach me and ask me to do this if they didn't see a reason.

What ever the legal consequences are I am still interested in writing such a program so that I may learn more about networking and exactly how the sharing protocols work.

Thanks in advance.
 
Actually there is a program out there that does this already, if i am reading you qyesiton correctely... It is called Legion, it will search and entire subnet for any open shares. you can find it at


If it is a corporation that you are working for and the machines belong to that corporation, they have the full right to monitor what their employees do. If the computers belong to those people then it is illegal...

It would also be alot easier to use c++ to write this program, use Microsoft Visual Studio the c++ compiler, since the product was develped by Microsoft.

good luck
 
I now about those scanners, but I want to understand how they work and be able to write one in java. I thought that java would be the ideal choice for this type of problem because of it's network capabilities.


BTW, I have tried using legion and it works OK, but I want to be able to connect to these shares and have the program scan the shares for material that is deemed as unnecessary by the company. Legion doesn't do that. I am not trying to discover if a machine has shares, I know they do because I put them there. If I use legion, all it does is mount the drive and I still have to search the computers manually. I want to do this as it is tedious. If I write a program that does this I would release it under GNU.

Are there any ideas on how to get this working. I do relize that a program of this nature could be used for unathourized activity but that is the same story for nmap.

I am curious, why would it be easier to write the program in c++ as opposed to java?

 
Status
Not open for further replies.

Similar threads

Replies
0
Views
40

Part and Inventory Search

Sponsor

Back
Top