mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Prevent endless post-authentication looping when encountering SYST errors.
Closes #1478
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#Nmap Changelog ($Id$); -*-text-*-
|
#Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [NSE][GH#1478] Updated script ftp-syst to prevent potential endless looping.
|
||||||
|
[nnposter]
|
||||||
|
|
||||||
o [NSE][GH#1457] New script, ubiquiti-discovery, which extracts information from
|
o [NSE][GH#1457] New script, ubiquiti-discovery, which extracts information from
|
||||||
the Ubiquiti Discovery service and assists version detection. [Tom Sellers]
|
the Ubiquiti Discovery service and assists version detection. [Tom Sellers]
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ action = function(host, port)
|
|||||||
|
|
||||||
-- SYST
|
-- SYST
|
||||||
local auth_done = false
|
local auth_done = false
|
||||||
local syst
|
local syst = nil
|
||||||
repeat
|
repeat
|
||||||
if not socket:send("SYST\r\n") then
|
if not socket:send("SYST\r\n") then
|
||||||
return nil
|
return nil
|
||||||
@@ -110,6 +110,9 @@ action = function(host, port)
|
|||||||
if status then
|
if status then
|
||||||
auth_done = true
|
auth_done = true
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
stdnse.debug1("SYST error: %d %s", code, message)
|
||||||
|
break
|
||||||
end
|
end
|
||||||
until not auth_done
|
until not auth_done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user