mssql-browser 
Rust implementation of the SQL Server Resolution Protocol.
The SQL Server Resolution Protocol enables finding endpoint information of MSSQL servers running in the current network.
The SQL Server Resolution Protocol (SSRP) [MC-SQLR] is a simple application-level protocol for the transfer of requests and responses between clients and database server discovery services. To determine the communication endpoint information of a particular database instance, the client sends a single request to a specific machine and waits for a single response. To enumerate database instances in the network and obtain the endpoint information of each instance, the client broadcasts or multicasts a request to the network and waits for responses from different discovery services on the network.
The SQL Server Resolution Protocol is appropriate for retrieving database endpoint information or for database instance enumeration in scenarios where network or local connectivity is available.
Usage
To use mssql-browser, first add this to your Cargo.toml:
[]
= "0.1"
Then you can make the different types and methods available in your module via an use statement:
use ;
Examples
Below are a few different ways to get endpoint information of MSSQL server instances. Check out the docs for a list of fields returned for each found instance.
Discover endpoint information of instances within network
use ;
use Error;
use ;
async
Discover endpoint information of instances on host
use ;
use Error;
use ;
async
Discover endpoint information of specific instance
use ;
use Error;
use ;
async
Discover DAC endpoint information
use ;
use Error;
use ;
async