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:
@@ -61,7 +61,7 @@ function grab_banner(host, port)
|
||||
return nil
|
||||
end
|
||||
|
||||
return response
|
||||
return response:match("^%s*(.-)%s*$");
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user