mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 00:49:01 +00:00
Removed some more errant newlines from the output
This commit is contained in:
@@ -8,7 +8,7 @@ owns.
|
||||
|
||||
---
|
||||
-- @usage
|
||||
-- sudo nmap -sU --script nbstat.nse -p137 <host>\n
|
||||
-- sudo nmap -sU --script nbstat.nse -p137 <host>
|
||||
--
|
||||
-- @output
|
||||
-- Host script results:
|
||||
@@ -127,7 +127,7 @@ action = function(host)
|
||||
|
||||
-- If verbosity is set, dump the whole list of names
|
||||
if(nmap.verbosity() >= 1) then
|
||||
table.insert(response, string.format("NetBIOS name: %s, NetBIOS user: %s, NetBIOS MAC: %s\n", server_name, user_name, mac))
|
||||
table.insert(response, string.format("NetBIOS name: %s, NetBIOS user: %s, NetBIOS MAC: %s", server_name, user_name, mac))
|
||||
|
||||
local names_output = {}
|
||||
names_output['name'] = "Names"
|
||||
@@ -157,7 +157,7 @@ action = function(host)
|
||||
|
||||
return stdnse.format_output(true, response)
|
||||
else
|
||||
return string.format("NetBIOS name: %s, NetBIOS user: %s, NetBIOS MAC: %s\n", server_name, user_name, mac)
|
||||
return string.format("NetBIOS name: %s, NetBIOS user: %s, NetBIOS MAC: %s", server_name, user_name, mac)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -63,7 +63,7 @@ action = function(host)
|
||||
|
||||
local result, username, domain = smb.get_account(host)
|
||||
if(result ~= false) then
|
||||
table.insert(response, string.format("Account that was used for smb scripts: %s\%s\n", domain, stdnse.string_or_blank(username, '<blank>')))
|
||||
table.insert(response, string.format("Account that was used for smb scripts: %s\%s", domain, stdnse.string_or_blank(username, '<blank>')))
|
||||
end
|
||||
|
||||
-- User-level authentication or share-level authentication
|
||||
|
||||
Reference in New Issue
Block a user