mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
mssql.Helper.GetDiscoveredInstances() always returns a table
This commit is contained in:
@@ -39,8 +39,9 @@
|
|||||||
-- with pre-discovered instances (e.g. by <code>ms-sql-discover</code> or <code>broadcast-ms-sql-discover</code>):
|
-- with pre-discovered instances (e.g. by <code>ms-sql-discover</code> or <code>broadcast-ms-sql-discover</code>):
|
||||||
--
|
--
|
||||||
-- <code>
|
-- <code>
|
||||||
-- local instance = mssql.Helper.GetDiscoveredInstances( host, port )
|
-- local instances = mssql.Helper.GetDiscoveredInstances( host, port )
|
||||||
-- if ( instance ) then
|
-- if ( instances ) then
|
||||||
|
-- local instance = next(instances)
|
||||||
-- local helper = mssql.Helper:new()
|
-- local helper = mssql.Helper:new()
|
||||||
-- status, result = helper:ConnectEx( instance )
|
-- status, result = helper:ConnectEx( instance )
|
||||||
-- status, result = helper:LoginEx( instance )
|
-- status, result = helper:LoginEx( instance )
|
||||||
|
|||||||
Reference in New Issue
Block a user