The SMB Share Discovery Tool is a Python-based application designed to discover, mount, and unmount SMB shares on a network. It utilizes the Zeroconf protocol for service discovery and provides a graphical user interface (GUI) built with Tkinter. This tool allows users to scan for SMB servers, list available shares, and manage mount points with ease.
- Discover SMB servers on the local network. NOTE: This program leverages mDNS to discover SMB servers on a local subnet. The discovery may not work as intended in more complex network topologies.
- List available shares on discovered servers.
- Mount and unmount shares with specified drive letters.
- View status of mounted shares.
- Log all activities to a file.
- Python 3
- Zeroconf library
- Tkinter library (usually included in standard Python installation)
The application requires the following Python libraries:
- Zeroconf: For service discovery using the Zeroconf protocol.
- Tkinter: For the graphical user interface.
Ensure these dependencies are installed and up-to-date in your Python environment to run the application successfully.
To install the SMB Share Discovery Tool, clone or download the repository to your local machine and ensure all dependencies are satisfied.
- Launch the program with Python:
python smb_discovery.py - Use the GUI to scan for SMB servers, view shares, and manage mount points.
- Click on the "Scan for SMB Servers" button to discover available SMB servers on the network.
- Select a server to view its available shares.
- Choose a share and a drive letter, then click "Mount Share" to mount it.
- To unmount a share, select it and click "Unmount Share".
- The application logs all activities, including server discovery, mounting, and unmounting operations, in
smb_discovery.log.
Contributions to the SMB Share Discovery Tool are welcome. Please feel free to fork the repository, make your changes, and submit a pull request.
This tool is provided as-is, and the developers are not responsible for any misuse or damage caused by this software.
