SMBCrawler is a command-line utility for listing workgroups, servers and shares. It also can recursivily list files located on a Samba server.
It's primarily developed for indexing the shares - for a search engine - on my student network, because I got tired of modifying the parser for the output generated by smbclient with every release.
To compile this program, you need to have the header files of the following packages:
After unpacking you can install the program by typing the following commands:
$ ./configure $ make $ su # make install
Usage: smbcrawler [options]* [server_name] -w, --workgroups List available workgroups -s, --servers List available servers -l, --shares=SERVER List available shares -c, --comments Show comments when listing shares or servers -o, --output=FILE Output file name (default=stdout) -f, --field-separator=SEP Field separator (default= : ) -h, --help Show this help message --usage Display brief usage message -V, --version Print version
Recursively list files of a server on all shares:
$ smbcrawler SERVER
List shares of a server:
$ smbcrawler -l SERVER
List workgroups on your network:
$ smbcrawler -w
List workgroups and servers and write output to FILE:
$ smbcrawler -s -o FILE
For comments, patches etc. please contact me:
Vincent Wagelaar vincent@ricardis.tudelft.nl