mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
merge soc07 r4804 - misc. NSE improvements
This commit is contained in:
parent
b642be63c5
commit
c6f2ab6e83
6 changed files with 38 additions and 3 deletions
|
|
@ -56,6 +56,10 @@ action = function(host, port)
|
|||
|
||||
if title ~= nil then
|
||||
result = string.gsub(title , "[\n\r\t]", "")
|
||||
if string.len(title) > 50 then
|
||||
nmap.print_debug_unformatted("showHTMLTitle.nse: title was truncated!");
|
||||
result = string.sub(result, 1, 62) .. "..."
|
||||
end
|
||||
else
|
||||
result = "Site doesn't have a title."
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue