diff --git a/scripts/nbstat.nse b/scripts/nbstat.nse index 34e3e9434..95ba57b2d 100644 --- a/scripts/nbstat.nse +++ b/scripts/nbstat.nse @@ -8,7 +8,7 @@ owns. --- -- @usage --- sudo nmap -sU --script nbstat.nse -p137 \n +-- sudo nmap -sU --script nbstat.nse -p137 -- -- @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 diff --git a/scripts/smb-security-mode.nse b/scripts/smb-security-mode.nse index ac18c4c33..df1e92b06 100644 --- a/scripts/smb-security-mode.nse +++ b/scripts/smb-security-mode.nse @@ -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, ''))) + table.insert(response, string.format("Account that was used for smb scripts: %s\%s", domain, stdnse.string_or_blank(username, ''))) end -- User-level authentication or share-level authentication