[ h o m e ]     [ c o d e ]


smbscan: scan an IP address or range for improperly shared directories

Purpose: my employer has several windows machines on their network, and I am always a little paranoid that someone is going to accidentally create a world writeable share. World readable shares really didn't turn me on either. Perhaps "readable and writeable by everyone" shouldn't be the default smb sharing option..hmm?

So, instead of constantly hassling the users about proper smb configuration, I decided to run this script every once in a while via cron and keep an eye on them.

This tool was written for the express purpose of scanning my employer's LAN for improperly shared directories. By downloading this script and/or the slightly modified version of ADM-SAMBA-CLIENT you agree that you will only use it on machines for which you have authorized access. Any other use is strictly prohibited.

Requirements:

a slightly cooked version of ADM-SAMBA-CLIENT which you can download here. See smbscan for more details on the modifications I made to the original.

You can get the orignial ADM-SAMBA-CLIENT here

Perl

Download
  • smbscan: a perl wrapper around a slightly cooked version of ADM-SAMBA-CLIENT
  • tweakedADM-SAMBA-CLIENT (you'll need this to use smbscan as it exists now)
© 2001 Steve McNabb - no stealin' stuff