mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
0be972cbc5
commit
918a3955d5
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ function grab_banner(host, port)
|
|||
return nil
|
||||
end
|
||||
|
||||
return response
|
||||
return response:match("^%s*(.-)%s*$");
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue