This is what happens with file sharing and why it is the worst possible thing to allow on any networked computer. Once you are in to this you have effectively lost control of your own machine. You can end up with something in your shared directory that could range from totally innocuous to child pornography.