mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Updates smb.lua and msrpc.lua to support fully qualified path names as share names and updates match for OID. Modern Windows versions require FQPN and older version work the same. The level of information requested with the call NetShareGetInfo was reduced to support newer versions of Windows. This closes #266, closes #704, closes #238, and closes #883.
This commit is contained in:
@@ -181,6 +181,7 @@ action = function(host)
|
||||
local output = ls.new_listing()
|
||||
|
||||
for _, share in ipairs(arg_shares) do
|
||||
stdnse.debug1("Share name:%s", share)
|
||||
local status, smbstate = smb.start_ex(host, true, true, share,
|
||||
nil, nil, nil)
|
||||
if ( not(status) ) then
|
||||
@@ -199,7 +200,7 @@ action = function(host)
|
||||
|
||||
ls.new_vol(
|
||||
output,
|
||||
'\\\\' .. stdnse.get_hostname(host) .. '\\' .. share .. path,
|
||||
share .. path,
|
||||
false)
|
||||
continue = list_files(host, share, smbstate, path, options,
|
||||
output, ls.config('maxdepth'))
|
||||
|
||||
Reference in New Issue
Block a user