1
0
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:
ron
2010-11-03 19:53:58 +00:00
parent c5a111c5b9
commit b7a802bce8
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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