1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 20:09:02 +00:00

Prevent endless post-authentication looping when encountering SYST errors.

Closes #1478
This commit is contained in:
nnposter
2019-02-17 19:37:41 +00:00
parent 143fe3fec3
commit e006a18fa5
2 changed files with 7 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ action = function(host, port)
-- SYST
local auth_done = false
local syst
local syst = nil
repeat
if not socket:send("SYST\r\n") then
return nil
@@ -110,6 +110,9 @@ action = function(host, port)
if status then
auth_done = true
end
else
stdnse.debug1("SYST error: %d %s", code, message)
break
end
until not auth_done