Monitor Network-folder and Bonjour

Is there any cool OSAXes or sample code to monitor Network-folder (in top left corner in Finder) and Bonjours.

I want to check now and then that there isnt any funny going on like hacking my computer or that Bonjour is off.

I don’t know if this will help, it’s not applescript although it can be turned into applescript.

I know of 2 ways to monitor your computer for funny business.

  1. monitor who logs into your computer…
    you can read about that from an article I posted to MacOSX Hints at http://www.macosxhints.com/article.php?story=2006081701162739
  2. monitor who logs into your computer via file sharing…
    You can track who logs into your computer via file sharing over your network. To do this you need to modify the preference file that controls what happens when others attempt to connect to your Mac via file sharing. To turn on file sharing logging type the following at the Terminal: sudo defaults write /Library/Preferences/com.apple.AppleFileServer activityLog Yes. This will create a log file named AppleFileServiceAccess.log in /Library/Logs/AppleFileService directory. This log can also be viewed via the Console application.

You can disable the ability for guests to login via file sharing altogether with the following Terminal command: sudo defaults write /Library/Preferences/com.apple.AppleFileServer guestAccess No.