Tolerate trailing data in the rsync version response. Close #3440

This commit is contained in:
nnposter 2026-08-22 22:15:41 +00:00
parent db4aefddfa
commit 8c161c6d7f
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*-
o [NSE][GH#3440] The rsync library was not correctly parsing server responses
for protocol version 32. [h00die]
o [NSE][GH#3430] Nmap now tolerates TLS targets that do not send close_notify.
[nnposter]

View file

@ -62,7 +62,7 @@ Helper = {
if ( not(status) ) then
return false, data
end
if ( not(data:match("^@RSYNCD: [%.%d]+$")) ) then
if ( not(data:match("^@RSYNCD: [.%d]+%f[ \0]")) ) then
return false, "Protocol error"
end
return true