mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Prevent endless post-authentication looping when encountering SYST errors.
Closes #1478
This commit is contained in:
parent
143fe3fec3
commit
e006a18fa5
2 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
#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
|
||||
the Ubiquiti Discovery service and assists version detection. [Tom Sellers]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue