mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 13:19:04 +00:00
Changed smb-enum-shares to detect a host that returns the incorrect value for unknown shares (happened against what appears to be a EMC SANS). Also added a check to stdnse.strjoin() to ensure that the first parameter is either nil or a string, I got the parameters wrong and spent awhile trying to figure otu why.
This commit is contained in:
@@ -49,6 +49,8 @@ end
|
||||
-- @param list Array of strings to concatenate.
|
||||
-- @return Concatenated string.
|
||||
function strjoin(delimiter, list)
|
||||
assert(type(delimiter) == "string" or type(delimiter) == nil, "delimiter is of the wrong type! (did you get the parameters backward?)")
|
||||
|
||||
return concat(list, delimiter);
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user