1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00

Fixed banner.nse to remove surrounding whitespace in the banner.

For example, this removed SSH greetings final two characters: carriage return
and newline.
This commit is contained in:
batrick
2009-04-06 16:00:18 +00:00
parent 0be972cbc5
commit 918a3955d5

View File

@@ -61,7 +61,7 @@ function grab_banner(host, port)
return nil return nil
end end
return response return response:match("^%s*(.-)%s*$");
end end