PySMBSearch

Crawler and search engine for SMB shares
Download

PySMBSearch Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Brendan Dolan-Gavitt
  • Publisher web site:
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 14 KB

PySMBSearch Tags


PySMBSearch Description

Crawler and search engine for SMB shares PySMBSearch is a free and open source Python utility that consists of a crawler script, which creates an index and stores it in an SQL database, and a CGI script that can be used to extract queries from the database.Installation:· Apply the smbclient patch to the samba source, and build smbclient.· Unpack iptonetbios and run make to build the utility.· Create a directory where executable files will be stored.· Place the iptonetbios and smbclient utilities in it, along with all the scripts in the python directory, genindex.sh, and gen-incremental.sh· Generate a list of IP addresses you wish to be scanned. I used the zone command to do this, for example, but you could also just make a file containing all the IPs within your netblock.· Create a database in which to store the index.· Edit the variables in smbsearch.conf to reflect your setup.· Edit the *.sh scripts and change the CONFDIR variable to reflect the location of your config file.· Run makedb.sh to create the appropriate table in the database.· Place the smbsearch2.py script in your server's CGI directory, and place the html files somewhere on your webserver. You may need to edit these to reflect the location of the CGI script on your server. You will probably also have to put edit the dbconnect() function to point to your database.· Add genindex.sh and gen-incremental to your crontab, so that it will update the database periodically. Mine does a full update at 2:00 AM, and incremental updates every odd numbered hour, so the lines look like: 0 2 * * * sh /home/moyix/bin/genindex.sh -q 0 1-23/2 * * * sh /home/moyix/bin/gen-incremental.sh -q the -q option tells the script to produce no output. Requirements: · Python What's New in This Release: · Added a configuration file that the scripts read, smbsearch.conf · Added a script to create the database tables · Added incremental updates in the form of a new script, gen-incremental.sh · Fixed a few minor bugs


PySMBSearch Related Software