SMBCrawler

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.

Download

Source

Debian

Installation

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

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

Examples

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

Author

For comments, patches etc. please contact me:

Vincent Wagelaar vincent@ricardis.tudelft.nl